mirror of https://github.com/python/cpython
Patch by Jeremy Katz (SF #1609407)
This commit is contained in:
parent
f54a63b3b5
commit
5492e1722a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue