Skip to content

Commit

Permalink
only log config file if loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Feb 2, 2024
1 parent d0038b4 commit e28c015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ func newRootCmd() *cobra.Command {
multiErr = errors.Join(multiErr, err)
}

logger.Infof("Using config file: %s", cfgFile)
if cfgFile != "" {
logger.Infof("Using config file: %s", cfgFile)
}

lvl, err := cmd.Flags().GetString("log-level")
if err != nil {
Expand Down

0 comments on commit e28c015

Please sign in to comment.