Skip to content

Commit

Permalink
Stop Sentry from swallowing log messages
Browse files Browse the repository at this point in the history
For a pre-defined set of loggers, like the Gunicorn loggers, Sentry
will register itself and disable propagation. However, this means any
handlers registered on the root level, like custom formatting stream
loggers or forwarding to central log aggregation will no longer get to
see these messages.
  • Loading branch information
matthias-bach-by committed Aug 17, 2018
1 parent c8fb761 commit 7d91ffb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

UNRELEASED
==========

- Fix log messages of Gunicorn and Flask not ending up in the root logger.

v2.0.2
======

Expand Down
2 changes: 1 addition & 1 deletion postgraas_server/create_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'SQLALCHEMY_MAX_OVERFLOW'
]

sentry = Sentry(logging=True, level=logging.WARN, wrap_wsgi=True)
sentry = Sentry(logging=True, level=logging.WARN, wrap_wsgi=True, logging_exclusions=())


def create_app(config):
Expand Down

0 comments on commit 7d91ffb

Please sign in to comment.