1
0
forked from ScoDoc/ScoDoc

Modif config log: moins verbeux, evite requetes ordinaires

This commit is contained in:
Emmanuel Viennet 2022-06-24 03:32:48 +02:00
parent 6f842dc877
commit f546837821

View File

@ -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)