do not log requests that begin with /_debug_toolbar
This commit is contained in:
parent
df3292df37
commit
dcb1aa77a2
|
@ -146,8 +146,10 @@ def set_index_page(app):
|
||||||
@app.after_request
|
@app.after_request
|
||||||
def after_request(res):
|
def after_request(res):
|
||||||
# not logging /static call
|
# not logging /static call
|
||||||
if not request.path.startswith("/static") and not request.path.startswith(
|
if (
|
||||||
"/admin/static"
|
not request.path.startswith("/static")
|
||||||
|
and not request.path.startswith("/admin/static")
|
||||||
|
and not request.path.startswith("/_debug_toolbar")
|
||||||
):
|
):
|
||||||
LOG.debug(
|
LOG.debug(
|
||||||
"%s %s %s %s %s",
|
"%s %s %s %s %s",
|
||||||
|
|
Loading…
Reference in New Issue