From b823f4359aa9c1d47cd09c97da67ac670014cfc5 Mon Sep 17 00:00:00 2001 From: Carlos Quintana <74399022+cquintana92@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:18:16 +0200 Subject: [PATCH] fix: do not log health requests (#2177) --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index f96c3adf..ea4dcc7f 100644 --- a/server.py +++ b/server.py @@ -200,7 +200,7 @@ def create_app() -> Flask: "username": "admin", "password": FLASK_PROFILER_PASSWORD, }, - "ignore": ["^/static/.*", "/git", "/exception"], + "ignore": ["^/static/.*", "/git", "/exception", "/health"], } flask_profiler.init_app(app) @@ -286,6 +286,7 @@ def set_index_page(app): and not request.path.startswith("/_debug_toolbar") and not request.path.startswith("/git") and not request.path.startswith("/favicon.ico") + and not request.path.startswith("/health") ): start_time = g.start_time or time.time() LOG.d(