Calling logging.addLevelName() for existing log levels overrides the original values in Python's logging module, which then makes it incompatible with log levels assumed by SysLogHandler, see logging.handlers.SysLogHandler.priority_map.
This causes unexpected behavior when using SysLogHandler, basically making it print all messages to syslog with loglevel warning.
This fixes the log level inconsistency in messages such as:
Calling logging.addLevelName() for existing log levels overrides the original values in Python's logging module, which then makes it incompatible with log levels assumed by SysLogHandler, see
logging.handlers.SysLogHandler.priority_map
. This causes unexpected behavior when using SysLogHandler, basically making it print all messages to syslog with loglevel warning. This fixes the log level inconsistency in messages such as: