Unify two log filters into one and move it to utils

This commit is contained in:
yangdx
2025-03-13 17:39:06 +08:00
parent e6c602b0ea
commit 82c2cae324
3 changed files with 4 additions and 38 deletions

View File

@@ -75,7 +75,8 @@ class LightragPathFilter(logging.Filter):
def __init__(self):
super().__init__()
# Define paths to be filtered
self.filtered_paths = ["/documents", "/health", "/webui/"]
# self.filtered_paths = ["/documents", "/health", "/webui/"]
self.filtered_paths = ["/health", "/webui/"]
def filter(self, record):
try: