diff options
author | Marko Kreen | 2012-04-09 08:41:04 +0000 |
---|---|---|
committer | Marko Kreen | 2012-04-09 08:41:04 +0000 |
commit | e97eef4e12abf91f8fa4182560a77af735875bfb (patch) | |
tree | 233ba2f242f05c49b07b5cdd6e8afd8c5e0ec071 | |
parent | 7f822fc35d1c3d807a419c4acae1a8dd80879db3 (diff) |
skytools.skylog: make sysloghander compatible with both 2.6 and 2.7
-rw-r--r-- | python/skytools/skylog.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/skytools/skylog.py b/python/skytools/skylog.py index 85ca0c71..bf76940c 100644 --- 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. |