[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] add timestamps to /tmp/anaconda.log



> 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]