Skip to content

Commit

Permalink
Logz.io: variable level.
Browse files Browse the repository at this point in the history
  • Loading branch information
garncarz committed Nov 7, 2018
1 parent 6d39da8 commit 35f6590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nogamespy/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
SENTRY_DSN = os.getenv('SENTRY_DSN')

LOGZIO_TOKEN = os.getenv('LOGZIO_TOKEN')
LOGZIO_LEVEL = os.getenv('LOGZIO_LEVEL', 'INFO')

STATSD_HOST = os.getenv('STATSD_HOST', 'localhost')
STATSD_PORT = 8125
Expand Down Expand Up @@ -104,7 +105,7 @@ def sentry_filter(record):

if LOGZIO_TOKEN:
LOGGING['handlers']['logzio'] = {
'level': 'INFO',
'level': LOGZIO_LEVEL,
'class': 'logzio.handler.LogzioHandler',
'formatter': 'logzioFormat',
'token': LOGZIO_TOKEN,
Expand Down

0 comments on commit 35f6590

Please sign in to comment.