Skip to content

Commit

Permalink
Merge pull request #12 from Stalin-143/alert-autofix-1
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 1: Flask app is run in debug mode
  • Loading branch information
Stalin-143 authored Dec 10, 2024
2 parents b8ddac4 + f630096 commit 221cad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,5 @@ def download_log():
return "Log file not found."

if __name__ == '__main__':
app.run(debug=True)
debug_mode = os.getenv('FLASK_DEBUG', 'False').lower() in ['true', '1', 't']
app.run(debug=debug_mode)

0 comments on commit 221cad1

Please sign in to comment.