logging: set default max_length for syslog lines to 120

This commit is contained in:
Benjamin Dauvergne 2013-05-28 10:41:54 +02:00
parent 69c7c72d45
commit 061646596c
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class SysLogHandler(logging.handlers.SysLogHandler):
max_length = 120
def __init__(self, *args, **kwargs):
self.max_length = kwargs.pop('max_length', 70)
self.max_length = kwargs.pop('max_length', self.max_length)
logging.handlers.SysLogHandler.__init__(self, *args, **kwargs)
def emit(self, record):