datefmt for not precise enough
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
New
|
Undecided
|
Unassigned |
Bug Description
When calling the vmbuilder script from the command line the date format of the timestamps in the log entries is good. e.g.
2011-03-01 21:11:43,057 INFO : Calling hook: post_install
2011-03-01 21:11:43,065 INFO : Calling hook: preflight_check
2011-03-01 21:11:43,110 INFO : Calling hook: configure_
2011-03-01 21:11:43,121 INFO : Calling hook: configure_mounting
2011-03-01 21:11:43,130 INFO : Calling hook: mount_partitions
...
But the log file produced in the /tmp directory for some reason has a much less specific date format e.g.
2011-03-01 19:50 DEBUG : Loading plugins
2011-03-01 19:50 DEBUG : ['dpkg', '--print-
2011-03-01 19:50 DEBUG : amd64"
2011-03-01 19:50 DEBUG : Returning value None for configuration key ppa
As can be seen by only being able to see to the nearest minute when an entry occurred it is not very useful for later analysis of the file.
The problem arises from a 'datefmt' parameter being specified in the call to logging.basicConfig in /usr/lib/
As described hear http://
...
29 # Log everything to the logfile
30 #logging.
31 logging.
32
...
Testing this on a lucid installation worked perfectly. Please could this be reviewed by someone more familiar with the code and considered for inclusion in a future release.
Thanks,
Daniel