Skip to content
Snippets Groups Projects
Commit d069a1e6 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Fixed missing event id in syslog logger

parent 75e735c4
Branches
Tags
No related merge requests found
...@@ -197,7 +197,7 @@ def FileLogger(req, filename, level=logging.INFO): ...@@ -197,7 +197,7 @@ def FileLogger(req, filename, level=logging.INFO):
def SysLogger(req, socket="/dev/log", facility=logging.handlers.SysLogHandler.LOG_DAEMON, level=logging.INFO): def SysLogger(req, socket="/dev/log", facility=logging.handlers.SysLogHandler.LOG_DAEMON, level=logging.INFO):
fhand = logging.handlers.SysLogHandler(address=socket, facility=facility) fhand = logging.handlers.SysLogHandler(address=socket, facility=facility)
fform = logging.Formatter('%(filename)s[%(process)d]: (%(levelname)s) %(message)s') fform = logging.Formatter('%(filename)s[%(process)d]: (%(levelname)s) %(req_preamble)s%(message)s')
fhand.setFormatter(fform) fhand.setFormatter(fform)
ffilt = LogRequestFilter(req) ffilt = LogRequestFilter(req)
logger = get_clean_root_logger(level) logger = get_clean_root_logger(level)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment