Files
ip-geo-api/app/logging_filter.py
Mateusz Gruszczyński 9828c9648a logowanie dla health
2025-10-06 08:54:19 +02:00

7 lines
179 B
Python

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