From d89c406cb4442a01bb64ee663f4bed185e3ca221 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 26 Jan 2003 02:14:23 +0000 Subject: SF #642974, logging SysLogHandler proto type wrong Syslog uses UDP (SOCK_DGRAM) --- Lib/logging/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index 4c037da..38711f8 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -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: -- cgit v0.12