commands: Use WARN log level also for the early initialization

Fixes #7285
This commit is contained in:
Bjørn Erik Pedersen 2020-05-18 16:52:45 +02:00
parent e0e81b280f
commit 518d149646
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ func newCommandeer(mustHaveConfigFile, running bool, h *hugoBuilderCommon, f fla
debounce: rebuildDebouncer,
fullRebuildSem: semaphore.NewWeighted(1),
// This will be replaced later, but we need something to log to before the configuration is read.
logger: loggers.NewLogger(jww.LevelError, jww.LevelError, out, ioutil.Discard, running),
logger: loggers.NewLogger(jww.LevelWarn, jww.LevelError, out, ioutil.Discard, running),
}
return c, c.loadConfig(mustHaveConfigFile, running)