Ticket #478: config.py.patch

File config.py.patch, 1.0 KB (added by ott814, 3 years ago)
  • framework/config.py

    old new  
    8484# now that we are clean, setup our actual handler and configure formatter 
    8585if debugto == "stderr": 
    8686    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" ) ) 
    8888elif debugto == "file": 
    8989    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" ) ) 
    9191elif debugto == "syslog": 
    9292    handler = logging.handlers.SysLogHandler( address = "/dev/log" ) 
    9393    # timestamps are not needed with syslog