Skip to content

Commit

Permalink
fix(fence): fix error handler (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
philloooo committed Sep 17, 2018
1 parent 8bd843f commit f6ca4e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fence/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import flask
from flask.ext.cors import CORS
from flask_sqlalchemy_session import flask_scoped_session, current_session
from cdislogging import get_stream_handler
import urlparse
from userdatamodel.driver import SQLAlchemyDriver

Expand Down Expand Up @@ -171,6 +172,7 @@ def app_sessions(app):


def app_init(app, settings='fence.settings', root_dir=None):
app.logger.addHandler(get_stream_handler())
app_config(app, settings=settings, root_dir=root_dir)
app_sessions(app)
app_register_blueprints(app)
Expand Down

0 comments on commit f6ca4e8

Please sign in to comment.