forked from ungleich-public/cdist
Default logging level is WARNING.
This commit is contained in:
parent
7361353497
commit
87fe52ea61
1 changed files with 5 additions and 2 deletions
|
@ -105,9 +105,12 @@ class Emulator(object):
|
|||
"""Setup logging facility"""
|
||||
|
||||
if '__cdist_loglevel' in self.env:
|
||||
try:
|
||||
level = int(self.env['__cdist_loglevel'])
|
||||
except:
|
||||
level = logging.WARNING
|
||||
else:
|
||||
level = logging.OFF
|
||||
level = logging.WARNING
|
||||
logging.root.setLevel(level)
|
||||
|
||||
self.log = logging.getLogger(self.target_host[0])
|
||||
|
|
Loading…
Reference in a new issue