summaryrefslogtreecommitdiffstats
path: root/Lib/logging/handlers.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-01-26 02:14:23 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-01-26 02:14:23 (GMT)
commitd89c406cb4442a01bb64ee663f4bed185e3ca221 (patch)
treeefd473cb3bbdf471e310068c4c19d5964cd47486 /Lib/logging/handlers.py
parent94ac339d217df742335cae39cd7faf36d8fa6f45 (diff)
downloadcpython-d89c406cb4442a01bb64ee663f4bed185e3ca221.zip
cpython-d89c406cb4442a01bb64ee663f4bed185e3ca221.tar.gz
cpython-d89c406cb4442a01bb64ee663f4bed185e3ca221.tar.bz2
SF #642974, logging SysLogHandler proto type wrong
Syslog uses UDP (SOCK_DGRAM)
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r--Lib/logging/handlers.py2
1 files changed, 1 insertions, 1 deletions
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: