Commit 6d6880fa authored by Alan's avatar Alan

ASP: log to stderr

Will-Fix: #15838
parent 106c5265
......@@ -638,10 +638,10 @@ if __name__ == "__main__":
else:
log_level = logging.INFO
log_format = "[%(levelname)s] %(message)s"
syslog_handler = logging.handlers.SysLogHandler(address="/dev/log")
stderr_handler = logging.StreamHandler()
file_handler = logging.FileHandler(ASP_LOG_FILE)
logging.basicConfig(format=log_format,
handlers=[syslog_handler, file_handler],
handlers=[stderr_handler, file_handler],
level=log_level)
gettext.install("tails")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment