Make __cdist_loglevel value more expressive. (#571)

This commit is contained in:
Darko Poljak 2017-09-07 16:36:23 +02:00 • committed by GitHub
commit 57f15f9cce
9 changed files with 48 additions and 14 deletions

View file

@ -114,7 +114,7 @@ class Manifest(object):
}
self.env.update(
{'__cdist_loglevel': str(self.log.getEffectiveLevel())})
{'__cdist_loglevel': logging.getLevelName(self.log.getEffectiveLevel())})
def _open_logger(self):
self.log = logging.getLogger(self.target_host[0])