logowanie dla health

This commit is contained in:
Mateusz Gruszczyński
2025-10-06 08:54:19 +02:00
parent 2d4834a2be
commit 9828c9648a
2 changed files with 12 additions and 6 deletions

6
app/logging_filter.py Normal file
View File

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