Logging process information if log level is DEBUG or higher
This commit is contained in:
parent
622f7cbb61
commit
a83efc62a5
@ -30,7 +30,11 @@ class Pipeline:
|
||||
baselogger.handlers = []
|
||||
log_level = config['Logging'].get('log_level', 'ERROR')
|
||||
baselogger.setLevel(log_level)
|
||||
|
||||
fmt = logging.Formatter('%(levelname)s in %(name)s: %(message)s')
|
||||
if baselogger.getEffectiveLevel() <= logging.DEBUG:
|
||||
fmt = logging.Formatter(
|
||||
'%(levelname)s in %(name)s (%(process)d): %(message)s')
|
||||
|
||||
stderrlog = logging.StreamHandler()
|
||||
stderrlog.setLevel(log_level)
|
||||
|
Loading…
x
Reference in New Issue
Block a user