diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2007-01-08 10:11:58 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2007-01-08 10:11:58 +0000 |
commit | 977061142dc2a71d8a23ad18b3676d8240d9b757 (patch) | |
tree | 2232185f0bbd8cc1226fbaaf6e950e97a53e4ed6 /Lib/logging/handlers.py | |
parent | 73fa6b58dd7b7febb1cb9e935e9c7f29cfa49b99 (diff) | |
download | cpython-git-977061142dc2a71d8a23ad18b3676d8240d9b757.tar.gz |
Backported change from trunk:
Made SysLogHandler more resilient in the face of syslogd failures.
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r-- | Lib/logging/handlers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index 35529501a7..4ef896ed5d 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -586,11 +586,11 @@ class SysLogHandler(logging.Handler): self.address = address self.facility = facility if type(address) == types.StringType: - self._connect_unixsocket(address) self.unixsocket = 1 + self._connect_unixsocket(address) else: - self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.unixsocket = 0 + self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.formatter = None |