From b73d613a54b9af9ddfb06efea7b5a145dfbb96ff Mon Sep 17 00:00:00 2001 From: Zed <124834187+zZedix@users.noreply.github.com> Date: Sat, 11 Oct 2025 00:02:08 +0330 Subject: [PATCH] Fixed logging.config import and prevented IndexError in EndpointFilter.filter --- app/utils/logger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/utils/logger.py b/app/utils/logger.py index f81cc0fee..87d858656 100644 --- a/app/utils/logger.py +++ b/app/utils/logger.py @@ -1,4 +1,5 @@ import logging +import logging.config from copy import copy from urllib.parse import unquote @@ -88,7 +89,7 @@ def __init__(self, excluded_endpoints: list[str]): self.excluded_endpoints = excluded_endpoints def filter(self, record: logging.LogRecord) -> bool: - if record.args and len(record.args) >= 2: + if record.args and len(record.args) >= 3: path = unquote(record.args[2]) return path not in self.excluded_endpoints return True