From dcb1aa77a203c1da8cd01fda18765b897a1fa8b4 Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 6 Jul 2019 17:50:21 +0200 Subject: [PATCH] do not log requests that begin with /_debug_toolbar --- server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 18bc139a..00e15063 100644 --- a/server.py +++ b/server.py @@ -146,8 +146,10 @@ def set_index_page(app): @app.after_request def after_request(res): # not logging /static call - if not request.path.startswith("/static") and not request.path.startswith( - "/admin/static" + if ( + not request.path.startswith("/static") + and not request.path.startswith("/admin/static") + and not request.path.startswith("/_debug_toolbar") ): LOG.debug( "%s %s %s %s %s",