Merge pull request #12 from Stalin-143/alert-autofix-1

Fix code scanning alert no. 1: Flask app is run in debug mode
This commit is contained in:
Stalin
2024-12-10 13:46:05 +05:30
committed by GitHub
+2 -1
View File
@@ -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)