logowanie dla health

This commit is contained in:
Mateusz Gruszczyński
2025-10-06 09:00:00 +02:00
parent 95917a9178
commit 6db9d9ccd4
3 changed files with 12 additions and 12 deletions

View File

@@ -1,6 +1,5 @@
import logging
class IgnoreHealth(logging.Filter):
def __init__(self, name: str = ""): super().__init__(name)
def filter(self, record: logging.LogRecord) -> bool:
msg = record.getMessage()
return "/health" not in msg
return "/health" not in record.getMessage()