Skip to content

Commit

Permalink
fix: don't print config path if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kushsharma committed Jun 14, 2021
1 parent 54719f7 commit 042f44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func InitOptimus() (*Optimus, error) {
return nil, errors.Wrap(err, "k.Load: error loading config from env")
}

if strings.ToLower(configuration.GetLog().Level) == "debug" {
if pathUsed != "" && strings.ToLower(configuration.GetLog().Level) == "debug" {
fmt.Printf("configuration used at %s out of %v\n", pathUsed, configDirs)
}
return configuration, nil
Expand Down

0 comments on commit 042f44c

Please sign in to comment.