projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94ac339
)
SF #642974, logging SysLogHandler proto type wrong
author
Neal Norwitz
<nnorwitz@gmail.com>
Sun, 26 Jan 2003 02:14:23 +0000
(
02:14
+0000)
committer
Neal Norwitz
<nnorwitz@gmail.com>
Sun, 26 Jan 2003 02:14:23 +0000
(
02:14
+0000)
Syslog uses UDP (SOCK_DGRAM)
Lib/logging/handlers.py
patch
|
blob
|
history
diff --git
a/Lib/logging/handlers.py
b/Lib/logging/handlers.py
index 4c037da86a4b63d2c752f85e28f5ff1ed059e5be..38711f8d4a3bbd45461870ff889e980cf4f0344e 100644
(file)
--- 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_
STRE
AM)
+ self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_
DGR
AM)
self.socket.connect(address)
self.unixsocket = 1
else: