mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Patch by Jeremy Katz (SF #1609407)
This commit is contained in:
parent
f54a63b3b5
commit
5492e1722a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue