Skip to content

Commit

Permalink
Squash 146 - Remove if/else'
Browse files Browse the repository at this point in the history
  • Loading branch information
MackHalliday committed Jun 26, 2024
1 parent 95440a5 commit 00e001a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions notifications_utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ def is_200_static_log(log) -> bool:

def get_handler(app):
stream_handler = logging.StreamHandler(sys.stdout)

if app.config['NOTIFY_ENVIRONMENT'] == 'production':
app.config.setdefault('NOTIFY_LOG_LEVEL', 'INFO')
else:
app.config.setdefault('NOTIFY_LOG_LEVEL', 'INFO')

stream_handler.setLevel(logging.getLevelName(app.config['NOTIFY_LOG_LEVEL']))
stream_handler.addFilter(AppNameFilter(app.config['NOTIFY_APP_NAME']))
Expand Down

0 comments on commit 00e001a

Please sign in to comment.