fix: correct ENABLE_AUDIT_STDOUT stdout filter (#21777)
This commit is contained in:
@@ -153,7 +153,7 @@ def start_logger():
|
|||||||
logger.remove()
|
logger.remove()
|
||||||
|
|
||||||
audit_filter = lambda record: (
|
audit_filter = lambda record: (
|
||||||
"auditable" not in record["extra"] if ENABLE_AUDIT_STDOUT else True
|
True if ENABLE_AUDIT_STDOUT else "auditable" not in record["extra"]
|
||||||
)
|
)
|
||||||
if LOG_FORMAT == "json":
|
if LOG_FORMAT == "json":
|
||||||
logger.add(
|
logger.add(
|
||||||
|
|||||||
Reference in New Issue
Block a user