diff --git a/cmd/postgres_exporter/main.go b/cmd/postgres_exporter/main.go index e548aa5ab..e01461f7d 100644 --- a/cmd/postgres_exporter/main.go +++ b/cmd/postgres_exporter/main.go @@ -15,6 +15,7 @@ package main import ( "fmt" + "github.com/prometheus/common/promslog" "net/http" _ "net/http/pprof" "os" @@ -151,7 +152,7 @@ func main() { level.Info(logger).Log("msg", "Listening on address", "address", *webConfig.WebListenAddresses) srv := &http.Server{} - if err := web.ListenAndServe(srv, webConfig, logger); err != nil { + if err := web.ListenAndServe(srv, webConfig, promslog.New(&promslog.Config{})); err != nil { level.Error(logger).Log("msg", "Error running HTTP server", "err", err) os.Exit(1) } diff --git a/tools/go.mod b/tools/go.mod index ecb38f944..e6edcfaa6 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,7 +1,8 @@ module github.com/percona/postgres_exporter/tools -go 1.22 -toolchain go1.22.5 +go 1.22.1 + +toolchain go1.23.2 require ( github.com/golangci/golangci-lint v1.59.1