Improve error when configuration reading fails
This commit is contained in:
parent
58a1fa6b3f
commit
1100ee6b5f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue