Skip to contentSkip to conversation

xend: log process id

PATCH New Horms 1 participant 1 message Jun 28, 2006

lore
Share & tools
lore

Horms

author
#0 lore raw

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.

tools/python/xen/xend/XendLogging.py +1 -1
diff -r 71a0b1d230c1 -r 2cd7f2c1744a tools/python/xen/xend/XendLogging.py
@@ -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"