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.
This commit is contained in:
Sybren A. Stüvel 2022-07-18 14:11:22 +02:00
parent 658a3d7a85
commit ad57070a2d

View File

@ -171,7 +171,7 @@ func DefaultConfig(override ...func(c *Conf)) Conf {
// loadConf parses the given file and returns its contents as a Conf object. // loadConf parses the given file and returns its contents as a Conf object.
func loadConf(filename string, overrides ...func(c *Conf)) (Conf, error) { 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) yamlFile, err := os.ReadFile(filename)
if err != nil { if err != nil {
var evt *zerolog.Event var evt *zerolog.Event