From 911430713897cf1550d92bffc24c6da12f9e42c9 Mon Sep 17 00:00:00 2001 From: ovsds Date: Thu, 11 Apr 2024 00:01:23 +0200 Subject: [PATCH] feat: ignore empty secrets for logging replacement --- backend/lib/utils/logging/formatters.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/lib/utils/logging/formatters.py b/backend/lib/utils/logging/formatters.py index 64866cf..519ff78 100644 --- a/backend/lib/utils/logging/formatters.py +++ b/backend/lib/utils/logging/formatters.py @@ -5,6 +5,9 @@ def register_secret(value: str, replace_value: str) -> None: + if value == "": + return + _SECRETS[value] = replace_value