Skip to content

Commit

Permalink
Revert "Squash #146 - try to set log level in get_handler"
Browse files Browse the repository at this point in the history
This reverts commit 95440a5.
  • Loading branch information
MackHalliday committed Jun 26, 2024
1 parent c52bccc commit b0e6a8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion notifications_utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ def build_statsd_line(extra_fields):

def init_app(app, statsd_client=None):

app.config.setdefault('NOTIFY_LOG_LEVEL', 'INFO')
if app.config['NOTIFY_ENVIRONMENT'] == 'production':
app.config.setdefault('NOTIFY_LOG_LEVEL', 'INFO')
else:
app.config.setdefault('NOTIFY_LOG_LEVEL', 'INFO')
breakpoint()
# app.config.setdefault('NOTIFY_LOG_LEVEL', 'INFO')
app.config.setdefault('NOTIFY_APP_NAME', 'none')
app.config.setdefault('NOTIFY_LOG_PATH', './log/application.log')

Expand Down

0 comments on commit b0e6a8f

Please sign in to comment.