Skip to content

Commit

Permalink
Initialize app insights only on dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
alguadam committed Oct 2, 2023
2 parents f27eaa7 + 3767184 commit 1d4fd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iebank_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from iebank_api import routes

# Initialize Application Insights and force flushing application insights handler after each request
if('ENV' != 'ghci'):
if('ENV' == 'dev'):
appinsights = AppInsights(app)
@app.after_request
def after_request(response):
Expand Down

0 comments on commit 1d4fd9d

Please sign in to comment.