diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-26 02:14:23 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-26 02:14:23 (GMT) |
commit | d89c406cb4442a01bb64ee663f4bed185e3ca221 (patch) | |
tree | efd473cb3bbdf471e310068c4c19d5964cd47486 /Lib/logging/handlers.py | |
parent | 94ac339d217df742335cae39cd7faf36d8fa6f45 (diff) | |
download | cpython-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.py | 2 |
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: |