forked from ungleich-public/cdist
Respect cdist log level in emulator.
This commit is contained in:
parent
1fa37566cb
commit
314a931b84
3 changed files with 7 additions and 6 deletions
|
|
@ -113,8 +113,8 @@ class Manifest(object):
|
|||
'__target_host_tags': self.local.target_host_tags,
|
||||
}
|
||||
|
||||
if self.log.getEffectiveLevel() == logging.DEBUG:
|
||||
self.env.update({'__cdist_debug': "yes"})
|
||||
self.env.update(
|
||||
{'__cdist_loglevel': str(self.log.getEffectiveLevel())})
|
||||
|
||||
def _open_logger(self):
|
||||
self.log = logging.getLogger(self.target_host[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue