Improve error when configuration reading fails

This commit is contained in:
Slavi Pantaleev
2022-08-26 15:28:47 +00:00
parent 58a1fa6b3f
commit 1100ee6b5f

View File

@@ -30,7 +30,7 @@ func main() {
cfg, err := config.New()
if err != nil {
log = logger.New("postmoogle.", "info")
log.Fatal("%s", err)
log.Fatal("cannot read config: %v", err)
}
log = logger.New("postmoogle.", cfg.LogLevel)