Skip to content

Commit 99c7a1d

Browse files
committed
review: improve logs
1 parent 63ca4fb commit 99c7a1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/config/reader.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,16 @@ func (r *FileReader) parseConfig() error {
7474

7575
if usedConfigFile == os.Stdin.Name() {
7676
usedConfigFile = ""
77+
r.log.Infof("Reading config file stdin")
7778
} else {
7879
var err error
7980
usedConfigFile, err = fsutils.ShortestRelPath(usedConfigFile, "")
8081
if err != nil {
8182
r.log.Warnf("Can't pretty print config file path: %v", err)
8283
}
83-
}
8484

85-
r.log.Infof("Used config file %s", usedConfigFile)
85+
r.log.Infof("Used config file %s", usedConfigFile)
86+
}
8687

8788
usedConfigDir, err := filepath.Abs(filepath.Dir(usedConfigFile))
8889
if err != nil {

0 commit comments

Comments
 (0)