Log ERROR to stderr and rest to stdout. (#576)
This commit is contained in:
parent
f2614469c5
commit
08bc38dd0f
3 changed files with 45 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue