projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f822fc
)
skytools.skylog: make sysloghander compatible with both 2.6 and 2.7
author
Marko Kreen
<markokr@gmail.com>
Mon, 9 Apr 2012 08:41:04 +0000
(11:41 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Mon, 9 Apr 2012 08:41:04 +0000
(11:41 +0300)
python/skytools/skylog.py
patch
|
blob
|
blame
|
history
diff --git
a/python/skytools/skylog.py
b/python/skytools/skylog.py
index 85ca0c7151cc23423dd184cc6db226a367ea4e4c..bf76940c93fa6e2b336f44cfca8d4a7186b59639 100644
(file)
--- a/
python/skytools/skylog.py
+++ b/
python/skytools/skylog.py
@@
-236,6
+236,9
@@
class LogDBHandler(logging.handlers.SocketHandler):
class SysLogHandler(logging.handlers.SysLogHandler):
"""Fixes unicode bug in logging.handlers.SysLogHandler."""
+ # be compatible with both 2.6 and 2.7
+ socktype = socket.SOCK_DGRAM
+
def emit(self, record):
"""
Emit a record.