xend: log process id
PATCH 1/1 xend: log process id
Have the parent id logged in the log file, this is very useful when debugging xend as it has multiple processes, and it can be hard to work out which one is doing what without this information.
Signed-off-by Horms <[email protected]>
tools/python/xen/xend/XendLogging.py +1 -1
@@ -42,7 +42,7 @@ DEFAULT_BACKUP_COUNT = 5 STDERR_FORMAT = "[%(name)s] %(levelname)s (%(module)s:%(lineno)d) %(message)s" -LOGFILE_FORMAT = "[%(asctime)s %(name)s] %(levelname)s (%(module)s:%(lineno)d) %(message)s" +LOGFILE_FORMAT = "[%(asctime)s %(name)s %(process)d] %(levelname)s (%(module)s:%(lineno)d) %(message)s" DATE_FORMAT = "%Y-%m-%d %H:%M:%S"