logowanie dla health
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user