summaryrefslogtreecommitdiffstats
path: root/src/software
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-11-08 15:58:35 +0100
committerMichal Minar <miminar@redhat.com>2013-11-08 15:58:35 +0100
commit2b0214c22bd97d09d934d53fc186b5477b7a6665 (patch)
tree6146259629e47ff4f64686d12b394c41a6f8c8b1 /src/software
parente9a5f34061fce27345dc65c50e4e7b609807c663 (diff)
downloadopenlmi-providers-2b0214c22bd97d09d934d53fc186b5477b7a6665.tar.gz
openlmi-providers-2b0214c22bd97d09d934d53fc186b5477b7a6665.tar.xz
openlmi-providers-2b0214c22bd97d09d934d53fc186b5477b7a6665.zip
software: fixed logging of YumWorker process
Separated process disables all loggers when starting up because most of them are not needed anymore. That includes tracing function in lmi.base.cmpi_logging. This logger needs to be reenabled in order for trace messages to be logged.
Diffstat (limited to 'src/software')
-rw-r--r--src/software/lmi/software/yumdb/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/software/lmi/software/yumdb/util.py b/src/software/lmi/software/yumdb/util.py
index 72ca6bc..06ecb18 100644
--- a/src/software/lmi/software/yumdb/util.py
+++ b/src/software/lmi/software/yumdb/util.py
@@ -102,6 +102,10 @@ def setup_logging():
defaults["root"]["level"] = level
logging.config.dictConfig(defaults)
logging_setup = True
+ # re-enable function tracing logger which has been disabled by
+ # dictConfig() call
+ logging.getLogger(cmpi_logging.__name__
+ + '.trace_function_or_method').disabled = False
except Exception:
pass
if logging_setup is False: