Skip to content

Commit

Permalink
refactor: log a warning when default configuration is not found
Browse files Browse the repository at this point in the history
This will inform the user better when the default configuration file is not found.
  • Loading branch information
sgaist authored Jul 16, 2024
1 parent 59e0a3c commit 7d3eaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func initConfig(configFile string, pathChanged bool) error {
if err := viper.ReadInConfig(); err != nil {
if errors.Is(err, os.ErrNotExist) {
if !pathChanged {
log.Debug("Config file not found", log.FilePath(configFile))
log.Warnf("Default config file %q not found, using built in values", log.FilePath(configFile))
return nil
}
}
Expand Down

0 comments on commit 7d3eaeb

Please sign in to comment.