logowanie dla health
This commit is contained in:
1 parent
95917a9178
commit
6db9d9ccd4
3 files changed
+12
-12
No files matched your search
@@ -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