Skip to content

Commit

Permalink
PMM-7 fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Oct 16, 2024
1 parent 642d58a commit 4761444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/postgres_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package main

import (
"fmt"
"github.com/prometheus/common/promslog"
"net/http"
_ "net/http/pprof"
"os"
Expand Down Expand Up @@ -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)
}
Expand Down
5 changes: 3 additions & 2 deletions tools/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4761444

Please sign in to comment.