fix: correct ENABLE_AUDIT_STDOUT stdout filter (#21777)

This commit is contained in:
Jannik S.
2026-02-23 18:52:29 +01:00
committed by GitHub
parent 6ab452a452
commit 140ab270af

View File

@@ -153,7 +153,7 @@ def start_logger():
logger.remove()
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":
logger.add(