pungi logger

Joel Andres Granados jgranado at redhat.com
Fri May 4 14:13:34 UTC 2007


Hi list

Referring to ticket #34 at 
https://hosted.fedoraproject.org/projects/pungi/ticket/34 stating that 
the logger needed a little work so that it didn't depend on the 
gather.py (or at least thats what I understood :)  I propose either a 
new file (pungiLog.py) located in the pypungi directory or a new 
function in the "pungi" file that contains the logging stuff.  The log 
services would be started somewhere before the line containing "# 
Actually do work." of the "pungi" file.  The logging root would be 
called "pungi" and would be called in each file that logging is needed 
with the logging.getlogger("pungi") command.
If "quiet" is specified in the config file the logging will be turned off.

*Diff for the pungi file:*
1. Initializes the logger by calling to the new file.
2. specify quiet value.
3.  logging function.
*
Diff for pungi.py file:
*1. use the correct logger.
*
Diff for gather.py file:*
change all the if statements for each logging call.

Files attached...
Comments appreciated.
Regards
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gather.py-diff
Url: http://lists.fedoraproject.org/pipermail/buildsys/attachments/20070504/200b306d/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pungi.py-diff
Url: http://lists.fedoraproject.org/pipermail/buildsys/attachments/20070504/200b306d/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pungi-diff
Url: http://lists.fedoraproject.org/pipermail/buildsys/attachments/20070504/200b306d/attachment-0002.pl 


More information about the buildsys mailing list