From ad57070a2d0dd226dfcf9c7df2d2a6cd63c378f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 18 Jul 2022 14:11:22 +0200 Subject: [PATCH] Manager: reduce log level of "loading configuration" message Every time the web interface starts, it queries the config to see whether it should be in first-time-wizard mode or not. This caused unnecessary info-level logging. In the future it would be better to load the config file just once, instead. --- internal/manager/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/manager/config/config.go b/internal/manager/config/config.go index b3b08d4c..736e771a 100644 --- a/internal/manager/config/config.go +++ b/internal/manager/config/config.go @@ -171,7 +171,7 @@ func DefaultConfig(override ...func(c *Conf)) Conf { // loadConf parses the given file and returns its contents as a Conf object. func loadConf(filename string, overrides ...func(c *Conf)) (Conf, error) { - log.Info().Str("file", filename).Msg("loading configuration") + log.Debug().Str("file", filename).Msg("loading configuration") yamlFile, err := os.ReadFile(filename) if err != nil { var evt *zerolog.Event