diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-26 02:14:23 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-26 02:14:23 +0000 |
| commit | d89c406cb4442a01bb64ee663f4bed185e3ca221 (patch) | |
| tree | efd473cb3bbdf471e310068c4c19d5964cd47486 | |
| parent | 94ac339d217df742335cae39cd7faf36d8fa6f45 (diff) | |
| download | cpython-git-d89c406cb4442a01bb64ee663f4bed185e3ca221.tar.gz | |
SF #642974, logging SysLogHandler proto type wrong
Syslog uses UDP (SOCK_DGRAM)
| -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 4c037da86a..38711f8d4a 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: |
