Skip to content

Commit

Permalink
Squash #146 - Correct config to os
Browse files Browse the repository at this point in the history
  • Loading branch information
MackHalliday committed Jun 27, 2024
1 parent 771e46e commit 77c7120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notifications_utils/logging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from email.mime import application
import logging
import os
import sys
from flask import request, g
from flask.ctx import has_request_context
Expand Down Expand Up @@ -44,7 +45,7 @@ def build_statsd_line(extra_fields):

def init_app(app, statsd_client=None):

if app.config['NOTIFY_ENVIRONMENT'] == 'production':
if os.environ['NOTIFY_ENVIRONMENT'] == 'production':
app.config.setdefault('NOTIFY_LOG_LEVEL', 'INFO')
else:
app.config.setdefault('NOTIFY_LOG_LEVEL', 'DEBUG')
Expand Down

0 comments on commit 77c7120

Please sign in to comment.