Skip to content

Commit d39e305

Browse files
committed
use Info level for excluded databases log message
This is the only log message which didn't specify a level in the postgres_exporter. I am unsure if this log message should be info or debug, but leaning towards the more important since previously it would just always log. The way I validated this was the only non-leveled logger was via grep. Both of these only returned this callsite previously: git grep 'logger\.Log' git grep '\.Log(' | grep -v level
1 parent 9cfa132 commit d39e305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cmd/postgres_exporter/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func main() {
9393
}
9494

9595
excludedDatabases := strings.Split(*excludeDatabases, ",")
96-
logger.Log("msg", "Excluded databases", "databases", fmt.Sprintf("%v", excludedDatabases))
96+
level.Info(logger).Log("msg", "Excluded databases", "databases", fmt.Sprintf("%v", excludedDatabases))
9797

9898
if *queriesPath != "" {
9999
level.Warn(logger).Log("msg", "The extended queries.yaml config is DEPRECATED", "file", *queriesPath)

0 commit comments

Comments
 (0)