Log ERROR to stderr and rest to stdout. (#576)

This commit is contained in:
Darko Poljak 2017-09-13 13:06:06 +02:00 committed by GitHub
commit 08bc38dd0f
3 changed files with 45 additions and 8 deletions

View file

@ -148,9 +148,7 @@ class Config(object):
if args.parallel or args.jobs:
# If parallel execution then also log process id
del logging.getLogger().handlers[:]
log_format = '%(levelname)s: [%(process)d]: %(message)s'
logging.basicConfig(format=log_format)
cdist.log.setupParallelLogging()
log = logging.getLogger("cdist")
if args.parallel: