Skip to content

Commit

Permalink
Fix code scanning alert no. 1: Flask app is run in debug mode
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b8ddac4 commit f630096
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 f630096

Please sign in to comment.