diff options
Diffstat (limited to 'python')
-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. |