Skip to content

Commit

Permalink
allow setting of log level via env var
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasheinrich committed Jun 14, 2018
1 parent df99ca3 commit e0ac3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packtivity/logutils.py
Expand Up @@ -15,7 +15,7 @@ def get_topic_loggername(metadata,topic):
def default_logging_handlers(log,metadata,state,topic):
if topic == 'step':
sh = logging.StreamHandler()
sh.setLevel(logging.INFO)
sh.setLevel(getattr(logging,os.environ.get('PACKTIVITY_LOGGING_STREAM_LEVEL','INFO')))
sh.setFormatter(formatter)
log.addHandler(sh)

Expand Down

0 comments on commit e0ac3e9

Please sign in to comment.