Commit a237d0a8 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add PID to all logs

This patch (for trunk) adds the PID to all daemon logs.

Reviewed-by: imsnah
parent 081242d8
......@@ -89,9 +89,10 @@ def SetupDaemon(logfile, debug=False, stderr_logging=False):
"""
if debug:
fmt = "%(asctime)s: %(levelname)s %(module)s:%(lineno)s %(message)s"
fmt = ("%(asctime)s: pid=%(process)d %(levelname)s"
" %(module)s:%(lineno)s %(message)s")
else:
fmt = "%(asctime)s: %(levelname)s %(message)s"
fmt = "%(asctime)s: pid=%(process)d %(levelname)s %(message)s"
formatter = logging.Formatter(fmt)
logfile_handler = logging.FileHandler(logfile)
......
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