mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 04:41:28 +02:00
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
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user