Skip to content

Commit c38c40c

Browse files
committed
ensure we properly call gethostname from socket
1 parent 1b9867f commit c38c40c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

logdna/logdna.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, key, options={}):
1515
self.secondary = [];
1616
logging.Handler.__init__(self)
1717
self.key = key
18-
self.hostname = options['hostname'] if 'hostname' in options else gethostname()
18+
self.hostname = options['hostname'] if 'hostname' in options else socket.gethostname()
1919
self.ip = options['ip'] if 'ip' in options else self.get_ip()
2020
self.mac = options['mac'] if 'mac' in options else None
2121
self.level = options['level'] if 'level' in options else 'info'

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
setup(
33
name = 'logdna',
44
packages = ['logdna'],
5-
version = '1.2.3',
5+
version = '1.2.4',
66
description = 'A python package for sending logs to LogDNA',
77
author = 'Answerbook Inc.',
88
author_email = 'help@logdna.com',
99
url = 'https://github.com/logdna/python',
10-
download_url = 'https://github.com/logdna/python/tarball/1.2.3',
10+
download_url = 'https://github.com/logdna/python/tarball/1.2.4',
1111
keywords = ['logdna', 'logging', 'logs', 'python', 'logdna.com', 'logger'],
1212
install_requires=[
1313
'requests',

0 commit comments

Comments
 (0)