diff --git a/notifications_utils/logging.py b/notifications_utils/logging.py index af8a5433..dabd24e1 100644 --- a/notifications_utils/logging.py +++ b/notifications_utils/logging.py @@ -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')