[node-patches] Change in ovirt-node[master]: Don't break existing loggers when ovirt.node.log is imported
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Thu May 1 21:03:24 UTC 2014
Fabian Deutsch has posted comments on this change.
Change subject: Don't break existing loggers when ovirt.node.log is imported
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
http://gerrit.ovirt.org/#/c/27270/1/src/ovirt/node/log.py
File src/ovirt/node/log.py:
Line 67: format=%(levelname)10s %(asctime)s %(pathname)s:%(lineno)s:%(funcName)s: \
Line 68: %(message)s
Line 69: """)
Line 70: logging.debug("Setting log config to: %s" % mixedfile)
Line 71: logging.config.fileConfig(mixedfile, disable_existing_loggers=False)
Mh. Basically correct to fix the bug ....
The reason I didn't do this is because of the old ovirtnode logging .... But probably this is okay. Needs intensive checking.
Line 72:
Line 73:
Line 74: def getLogger(name=None):
Line 75: if not getLogger._logger:
--
To view, visit http://gerrit.ovirt.org/27270
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib91496239b8cc4c0096214127fa461e12b266dcb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the node-patches
mailing list