Skip to content

Commit

Permalink
Remove environment variable overwrite for log-level (use CLI options …
Browse files Browse the repository at this point in the history
…instead)
  • Loading branch information
reuterbal committed Oct 14, 2024
1 parent 398b668 commit 3e0a5bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions loki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
preprocess=lambda i: bool(i) if isinstance(i, int) else i)

# Define Loki's global config options
config.register('log-level', 'INFO', env_variable='LOKI_LOGGING',
callback=set_log_level, preprocess=lambda i: log_levels[i])
config.register('log-level', 'INFO', callback=set_log_level, preprocess=lambda i: log_levels[i])

config.register('debug', None, env_variable='LOKI_DEBUG',
callback=set_excepthook, preprocess=lambda i: auto_post_mortem_debugger if i else None)
Expand Down

0 comments on commit 3e0a5bf

Please sign in to comment.