fix: changed output to use log instead of fmt
This commit is contained in:
parent
5ca4d17d42
commit
e1a9f4ae36
2 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ func initConfig() {
|
|||
if configPath != "" {
|
||||
exists, err := util.PathExists(configPath)
|
||||
if err != nil {
|
||||
fmt.Printf("failed to load config")
|
||||
log.Error().Err(err).Str("path", configPath).Msg("failed to load config")
|
||||
os.Exit(1)
|
||||
} else if exists {
|
||||
conf = config.Load(configPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue