[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] add timestamps to /tmp/anaconda.log
- From: Chris Lumens <clumens redhat com>
- To: Anaconda-devel-list redhat com
- Cc:
- Subject: Re: [PATCH] add timestamps to /tmp/anaconda.log
- Date: Fri, 26 Oct 2007 15:16:20 -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,
Well the /tmp/anaconda.log should already have timestamps. This will
only change what you see on stdout (tty1) when things go wrong, but I've
added it anyway.
- Chris
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]