Skip to content

Commit

Permalink
Merge pull request #4033 from gitcoinco/prod-logging-quick-fix
Browse files Browse the repository at this point in the history
fix production logging watchtower setup
  • Loading branch information
danlipert authored Mar 21, 2019
2 parents b0ab176 + e2d4dc3 commit 73253d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@
'filters': ['host_filter'],
'formatter': 'cloudwatch',
}
LOGGING['root']['handlers'].push('watchtower')
LOGGING['loggers']['django.db.backends']['handlers'].push('watchtower')
LOGGING['root']['handlers'].append('watchtower')
LOGGING['loggers']['django.db.backends']['handlers'].append('watchtower')
LOGGING['loggers']['django.db.backends']['level'] = AWS_LOG_LEVEL

LOGGING['loggers']['django.request'] = LOGGING['loggers']['django.db.backends']
Expand Down

0 comments on commit 73253d8

Please sign in to comment.