fix: logging config - reduce verbosity and duplication
This commit is contained in:
@@ -17,9 +17,11 @@ class IgnoreSuccessfulStatusAccessFilter(logging.Filter):
|
||||
'"POST /scan/smart_params HTTP/1.1" 200',
|
||||
)
|
||||
|
||||
|
||||
_SUPPRESSED_EXPECTED_403_MESSAGES = (
|
||||
'"GET /sse/face_detection HTTP/1.1" 403',
|
||||
'"GET /sse/automation_progress HTTP/1.1" 403',
|
||||
'"POST /scan/smart_params HTTP/1.1" 403'
|
||||
)
|
||||
|
||||
def filter(self, record: logging.LogRecord) -> bool:
|
||||
|
||||
@@ -42,4 +42,4 @@ loggers:
|
||||
|
||||
root:
|
||||
level: DEBUG
|
||||
handlers: [console]
|
||||
handlers: []
|
||||
Reference in New Issue
Block a user