Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment