Douglas Schilling Landgraf has uploaded a new change for review. Change subject: ovirtfunctions: Replace getLogger PRODUCT_SHORT ......................................................................
ovirtfunctions: Replace getLogger PRODUCT_SHORT Instead of show oVirt strings in the logs, we can have the full hierarchy of logs with __name__. Change-Id: Ideb9f32a8bdbceebed8e74d00615e3709a32dab1 Signed-off-by: Douglas Schilling Landgraf <[email protected]> --- M src/ovirtnode/ovirtfunctions.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/21/42521/1 diff --git a/src/ovirtnode/ovirtfunctions.py b/src/ovirtnode/ovirtfunctions.py index 7481341..4f0f241 100644 --- a/src/ovirtnode/ovirtfunctions.py +++ b/src/ovirtnode/ovirtfunctions.py @@ -1857,7 +1857,7 @@ formatter = logging.Formatter(fmt='%(asctime)s - %(levelname)s - %(module)s - %(message)s') handler = logging.FileHandler(log_file) handler.setFormatter(formatter) - logger = logging.getLogger(PRODUCT_SHORT) + logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) logger.addHandler(handler) return logger @@ -1866,4 +1866,4 @@ log_file = OVIRT_TMP_LOGFILE logger = setup_custom_logger() else: - logger = logging.getLogger(PRODUCT_SHORT) + logger = logging.getLogger(__name__) -- To view, visit https://gerrit.ovirt.org/42521 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ideb9f32a8bdbceebed8e74d00615e3709a32dab1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: Douglas Schilling Landgraf <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
