From cd2ee5ba0867d39b87554cc62e232697f0eed281 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 28 Nov 2024 09:54:33 +0100 Subject: [PATCH] backend/internal/config: log env var fallback as info instead of warning The cilium-cli connectivity test treats warnings in the logs as test errors[^1]. This causes tests involving hubble-ui to fail[^2]. As these fallbacks aren't really warnings but rather informative messsages, demote them to info level. [^1]: https://github.com/cilium/cilium/pull/35723 [^2]: https://github.com/cilium/cilium-cli/actions/runs/12051244564/job/33601849065?pr=2869#step:13:541 Signed-off-by: Tobias Klauser --- backend/internal/config/prop_getters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/config/prop_getters.go b/backend/internal/config/prop_getters.go index c2306471..ed949287 100644 --- a/backend/internal/config/prop_getters.go +++ b/backend/internal/config/prop_getters.go @@ -181,5 +181,5 @@ func (er *EnvVarResult[T]) LogIfFallback(log logrus.FieldLogger) { log. WithField("var", er.VarName). WithField("fallback", fmt.Sprintf("%v", er.Value)). - Warn("using fallback value for env var") + Info("using fallback value for env var") }