From 66c672430e62d9b864395e269c3e70f2a5bc388b Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Sun, 25 Dec 2022 21:57:35 +0100 Subject: [PATCH] Switch to github.com/go-kit/log Address a report by staticcheck: "github.com/go-kit/kit/log" is deprecated: Use github.com/go-kit/log instead. (SA1019) --- go.mod | 3 +-- go.sum | 2 -- main.go | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 6da0010..cad83f7 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/hansmi/prometheus-lvm-exporter go 1.19 require ( - github.com/go-kit/kit v0.12.0 + github.com/go-kit/log v0.2.1 github.com/google/go-cmp v0.5.9 github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 github.com/prometheus/client_golang v1.14.0 @@ -21,7 +21,6 @@ require ( github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/coreos/go-systemd/v22 v22.4.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/jpillora/backoff v1.0.0 // indirect diff --git a/go.sum b/go.sum index 5c15699..904e973 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,6 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= -github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= diff --git a/main.go b/main.go index 34810f5..e52489b 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( "github.com/prometheus/exporter-toolkit/web" "gopkg.in/alecthomas/kingpin.v2" - kitlog "github.com/go-kit/kit/log" + kitlog "github.com/go-kit/log" webflag "github.com/prometheus/exporter-toolkit/web/kingpinflag" )