Skip to content

Commit

Permalink
Merge pull request #784 from sysadmind/log-startup
Browse files Browse the repository at this point in the history
Adjust log level for collector startup
  • Loading branch information
sysadmind authored Mar 30, 2023
2 parents 5f57b78 + ac05e0b commit 285462b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/postgres_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func main() {

if err := c.ReloadConfig(*configFile, logger); err != nil {
// This is not fatal, but it means that auth must be provided for every dsn.
level.Error(logger).Log("msg", "Error loading config", "err", err)
level.Warn(logger).Log("msg", "Error loading config", "err", err)
}

dsns, err := getDataSources()
Expand Down Expand Up @@ -127,7 +127,7 @@ func main() {
[]string{},
)
if err != nil {
level.Error(logger).Log("msg", "Failed to create PostgresCollector", "err", err.Error())
level.Warn(logger).Log("msg", "Failed to create PostgresCollector", "err", err.Error())
} else {
prometheus.MustRegister(pe)
}
Expand Down

0 comments on commit 285462b

Please sign in to comment.