SF #642974, logging SysLogHandler proto type wrong
Syslog uses UDP (SOCK_DGRAM)
This commit is contained in:
parent
94ac339d21
commit
d89c406cb4
|
@ -348,7 +348,7 @@ class SysLogHandler(logging.Handler):
|
|||
self.address = address
|
||||
self.facility = facility
|
||||
if type(address) == types.StringType:
|
||||
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
|
||||
self.socket.connect(address)
|
||||
self.unixsocket = 1
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue