diff options
author | Michal Minar <miminar@redhat.com> | 2013-07-10 14:21:49 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-07-23 13:52:34 +0200 |
commit | f882972d9ac5cf87584c164953baa964c24caaff (patch) | |
tree | 9b6f7beda4baecdcb861c03cf86020461bbf3790 /src/python/lmi | |
parent | 81c8ccb5cb9dc4dd556307930650fc9479d51edb (diff) | |
download | openlmi-providers-f882972d9ac5cf87584c164953baa964c24caaff.tar.gz openlmi-providers-f882972d9ac5cf87584c164953baa964c24caaff.tar.xz openlmi-providers-f882972d9ac5cf87584c164953baa964c24caaff.zip |
moved logging level option to BaseConfiguration
Diffstat (limited to 'src/python/lmi')
-rw-r--r-- | src/python/lmi/common/BaseConfiguration.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/python/lmi/common/BaseConfiguration.py b/src/python/lmi/common/BaseConfiguration.py index 639a2f5..f54de03 100644 --- a/src/python/lmi/common/BaseConfiguration.py +++ b/src/python/lmi/common/BaseConfiguration.py @@ -81,7 +81,8 @@ class BaseConfiguration(Singleton): DEFAULT_OPTIONS = { 'Namespace' : 'root/cimv2', 'SystemClassName' : 'Linux_ComputerSystem', - 'Debug' : 'false', + # Default logging level + "Level" : "ERROR", 'DebugBlivet' : 'false', 'Stderr' : 'false', } @@ -186,9 +187,9 @@ class BaseConfiguration(Singleton): return socket.getfqdn() @property - def tracing(self): - """ Return True if tracing is enabled. """ - return self.config.getboolean('Log', 'Debug') + def logging_level(self): + """ Return name of logging level in lower case. """ + return self.config.get('Log', 'Level').lower() @property def stderr(self): |