Project

General

Profile

« Previous | Next » 

Revision 06164659

Added by Benjamin Dauvergne about 11 years ago

logging: set default max_length for syslog lines to 120

View differences:

entrouvert/logging/handlers.py
9 9
    max_length = 120
10 10

  
11 11
    def __init__(self, *args, **kwargs):
12
        self.max_length = kwargs.pop('max_length', 70)
12
        self.max_length = kwargs.pop('max_length', self.max_length)
13 13
        logging.handlers.SysLogHandler.__init__(self, *args, **kwargs)
14 14

  
15 15
    def emit(self, record):

Also available in: Unified diff