Ticket #478: config.py.patch
| File config.py.patch, 1.0 KB (added by ott814, 3 years ago) |
|---|
-
framework/config.py
old new 84 84 # now that we are clean, setup our actual handler and configure formatter 85 85 if debugto == "stderr": 86 86 handler = logging.StreamHandler() # default=stderr 87 handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs) d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) )87 handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs)03d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) ) 88 88 elif debugto == "file": 89 89 handler = logging.FileHandler( debugdest ) 90 handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs) d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) )90 handler.setFormatter( logging.Formatter( "%(asctime)s.%(msecs)03d %(name)-20s %(levelname)-8s %(message)s", datefmt="%Y.%m.%d %H:%M:%S" ) ) 91 91 elif debugto == "syslog": 92 92 handler = logging.handlers.SysLogHandler( address = "/dev/log" ) 93 93 # timestamps are not needed with syslog
