Skip to content

Commit

Permalink
fix: app insights condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alguadam committed Oct 2, 2023
1 parent 1d4fd9d commit 7f65c30
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' == 'dev'):
if(os.getenv('ENV') == 'dev'):
appinsights = AppInsights(app)
@app.after_request
def after_request(response):
Expand Down

0 comments on commit 7f65c30

Please sign in to comment.