From f546837821f4f0e63a02871caebf2b7e0920a2f2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 24 Jun 2022 03:32:48 +0200 Subject: [PATCH] Modif config log: moins verbeux, evite requetes ordinaires --- app/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index a1862aaa7..66c6effd1 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -205,6 +205,10 @@ def create_app(config_class=DevConfig): app = Flask(__name__, static_url_path="/ScoDoc/static", static_folder="static") app.wsgi_app = ReverseProxied(app.wsgi_app) app.logger.setLevel(logging.DEBUG) + + # Evite de logguer toutes les requetes dans notre log + logging.getLogger("werkzeug").disabled = True + app.config.from_object(config_class) db.init_app(app)