Skip to content

Commit

Permalink
Drop redundant registration of the Sentry log handler
Browse files Browse the repository at this point in the history
This is automatically registered by the Sentry initialization.
  • Loading branch information
matthias-bach-by committed Aug 17, 2018
1 parent 7633620 commit c8fb761
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions postgraas_server/create_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def create_app(config):
]
app.config['SENTRY_RELEASE'] = postgraas_server.__version__
sentry.init_app(app)
from raven.handlers.logging import SentryHandler
app.logger.addHandler(SentryHandler(client=sentry.client, level=logging.WARN))

restful_api = Api(app)
restful_api.add_resource(DBInstanceResource, "/api/v2/postgraas_instances/<int:id>")
Expand Down

0 comments on commit c8fb761

Please sign in to comment.