[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] add timestamps to /tmp/anaconda.log
- From: Christopher Boumenot <boumenot gmail com>
- To: Anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] add timestamps to /tmp/anaconda.log
- Date: Fri, 26 Oct 2007 14:44:46 -0400
It would be nice to have timestamps in the log file to better understand when
things occur.
diff -r 0aff5ad26f74 anaconda_log.py
--- a/anaconda_log.py Thu Sep 20 14:02:11 2007 -0400
+++ b/anaconda_log.py Fri Oct 26 14:38:45 2007 -0400
@@ -62,0 +62,0 @@ class AnacondaLog:
# Add a handler for the duped stuff. No fancy formatting, thanks.
self.addFileHandler (sys.stdout, self.stdoutLogger,
- fmtStr="%(message)s", minLevel=logging.INFO)
+ fmtStr="%(asctime)s %(message)s", minLevel=logging.INFO)
# Add a simple handler - file or stream, depending on what we're given.
def addFileHandler (self, file, addToLogger, minLevel=DEFAULT_LEVEL,
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]