Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
[BAU] set up logging first during app initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrusdobbs committed Dec 4, 2023
1 parent cbaf722 commit 93a8c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def create_app(config_class=Config):
init_sentry()
app = Flask(__name__, static_url_path="/static")
app.config.from_object(config_class)
logging.init_app(app)
app.jinja_env.lstrip_blocks = True
app.jinja_env.trim_blocks = True
app.jinja_loader = ChoiceLoader(
Expand Down Expand Up @@ -52,7 +53,6 @@ def create_app(config_class=Config):
email_mapping.update(Config.ADDITIONAL_EMAIL_LOOKUPS)
app.config["AUTH_MAPPING"]: AuthMapping = build_auth_mapping(Config.FUND_NAME, email_mapping)

logging.init_app(app)
return app


Expand Down

0 comments on commit 93a8c89

Please sign in to comment.