Skip to content

Commit

Permalink
Improve error log message for missing log file
Browse files Browse the repository at this point in the history
  • Loading branch information
DRuggeri committed Aug 21, 2020
1 parent aadbfb9 commit 7dbd8ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bind_query_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ func main() {

fi, err := os.Stat(*bindQueryLogFile)
if err != nil {
log.Errorln("Failed to stat ", bindQueryLogFile)
log.Errorln("Failed to stat file:", *bindQueryLogFile, err)
os.Exit(1)
}

var collectorsFilters []string
Expand Down

0 comments on commit 7dbd8ac

Please sign in to comment.