[Yum-devel] Logging and init_hook
James Bowes
jbowes at redhat.com
Thu Aug 3 17:33:20 UTC 2006
Hi all:
Due to the nature of yum's order of operations for initialization, any
plugins that used logging via the conduit during the init_hook would
produce nasty python logging default formatting output, like:
CRITICAL:yum.plugin:This is a message
The attached patch separates logging initialization into two steps. The
first step sets up everything but the logger for /var/log/yum.log. The
second step sets up /var/log/yum.log. Both are then run as early as
possible.
-James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logging-plugin-init.patch
Type: text/x-patch
Size: 3585 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20060803/c5351ba2/attachment.bin
More information about the Yum-devel
mailing list