From 52d22294825a877ed137392272734c8f00e44179 Mon Sep 17 00:00:00 2001 From: jakedt Date: Mon, 10 Mar 2014 12:48:03 -0400 Subject: [PATCH] Disable debug mode in production so teardown requests execute on exception. --- application.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/application.py b/application.py index 797dc848b..3d962e6ce 100644 --- a/application.py +++ b/application.py @@ -39,9 +39,5 @@ def close_db(exc): application.teardown_request(close_db) - -# Remove this for prod config -application.debug = True - if __name__ == '__main__': application.run(port=5000, debug=True, threaded=True, host='0.0.0.0')