SF #642974, logging SysLogHandler proto type wrong

Syslog uses UDP (SOCK_DGRAM)
This commit is contained in:
Neal Norwitz 2003-01-26 02:14:23 +00:00
parent 94ac339d21
commit d89c406cb4
1 changed files with 1 additions and 1 deletions

View File

@ -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: