logging: handlers are old style class, super does not work there
This commit is contained in:
parent
c5e20b7ca5
commit
69c7c72d45
|
@ -10,7 +10,7 @@ class SysLogHandler(logging.handlers.SysLogHandler):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.max_length = kwargs.pop('max_length', 70)
|
||||
super(SysLogHandler, self).__init__(*args, **kwargs)
|
||||
logging.handlers.SysLogHandler.__init__(self, *args, **kwargs)
|
||||
|
||||
def emit(self, record):
|
||||
"""
|
||||
|
|
Reference in New Issue