From 4761444f6edf79b45c66e5db82c3922a57d5e599 Mon Sep 17 00:00:00 2001 From: Nurlan Moldomurov Date: Wed, 16 Oct 2024 14:46:23 +0300 Subject: [PATCH] PMM-7 fix build. --- cmd/postgres_exporter/main.go | 3 ++- tools/go.mod | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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