[node-patches] Change in ovirt-node[master]: ovirtfunctions: Replace getLogger PRODUCT_SHORT
dougsland at redhat.com
dougsland at redhat.com
Wed Jun 17 21:19:43 UTC 2015
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 <dougsland at redhat.com>
---
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 <dougsland at redhat.com>
More information about the node-patches
mailing list