Skip to content

Commit c1ab341

Browse files
Fix broken log-level for values other than debug.
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
1 parent 57719ba commit c1ab341

File tree

11 files changed

+14
-203
lines changed

11 files changed

+14
-203
lines changed

cmd/postgres_exporter/datasource.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"regexp"
2222
"strings"
2323

24-
"github.com/go-kit/kit/log/level"
24+
"github.com/go-kit/log/level"
2525
"github.com/prometheus/client_golang/prometheus"
2626
)
2727

cmd/postgres_exporter/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"net/http"
1818
"os"
1919

20-
"github.com/go-kit/kit/log"
21-
"github.com/go-kit/kit/log/level"
20+
"github.com/go-kit/log"
21+
"github.com/go-kit/log/level"
2222
"github.com/prometheus/client_golang/prometheus"
2323
"github.com/prometheus/client_golang/prometheus/promhttp"
2424
"github.com/prometheus/common/promlog"

cmd/postgres_exporter/namespace.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"time"
2121

2222
"github.com/blang/semver"
23-
"github.com/go-kit/kit/log/level"
23+
"github.com/go-kit/log/level"
2424
"github.com/lib/pq"
2525
"github.com/prometheus/client_golang/prometheus"
2626
)

cmd/postgres_exporter/pg_setting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"strconv"
2020
"strings"
2121

22-
"github.com/go-kit/kit/log/level"
22+
"github.com/go-kit/log/level"
2323
"github.com/prometheus/client_golang/prometheus"
2424
)
2525

cmd/postgres_exporter/postgres_exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"time"
2626

2727
"github.com/blang/semver"
28-
"github.com/go-kit/kit/log/level"
28+
"github.com/go-kit/log/level"
2929
"github.com/prometheus/client_golang/prometheus"
3030
)
3131

cmd/postgres_exporter/queries.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"fmt"
1919

2020
"github.com/blang/semver"
21-
"github.com/go-kit/kit/log/level"
21+
"github.com/go-kit/log/level"
2222
"gopkg.in/yaml.v2"
2323
)
2424

cmd/postgres_exporter/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"time"
2121

2222
"github.com/blang/semver"
23-
"github.com/go-kit/kit/log/level"
23+
"github.com/go-kit/log/level"
2424
"github.com/prometheus/client_golang/prometheus"
2525
)
2626

cmd/postgres_exporter/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strings"
2222
"time"
2323

24-
"github.com/go-kit/kit/log/level"
24+
"github.com/go-kit/log/level"
2525
"github.com/lib/pq"
2626
)
2727

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.14
44

55
require (
66
github.com/blang/semver v3.5.1+incompatible
7-
github.com/go-kit/kit v0.11.0
7+
github.com/go-kit/log v0.1.0
88
github.com/lib/pq v1.10.1
99
github.com/prometheus/client_golang v1.11.0
1010
github.com/prometheus/client_model v0.2.0

go.sum

+3-192
Large diffs are not rendered by default.

scripts/errcheck_excludes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Never check for logger errors.
2-
(github.com/go-kit/kit/log.Logger).Log
2+
(github.com/go-kit/log.Logger).Log

0 commit comments

Comments
 (0)