mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
golangci-lint: Enable loggercheck linter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
5efc8dd27b
commit
be975bf8d7
|
@ -29,6 +29,7 @@ linters:
|
|||
- unused
|
||||
- usestdlibvars
|
||||
- whitespace
|
||||
- loggercheck
|
||||
|
||||
issues:
|
||||
max-same-issues: 0
|
||||
|
|
|
@ -200,7 +200,7 @@ func (tc *ZookeeperTreeCache) loop(path string) {
|
|||
failure()
|
||||
} else {
|
||||
tc.resyncState(tc.prefix, tc.head, previousState)
|
||||
level.Info(tc.logger).Log("Zookeeper resync successful")
|
||||
level.Info(tc.logger).Log("msg", "Zookeeper resync successful")
|
||||
failureMode = false
|
||||
}
|
||||
case <-tc.stop:
|
||||
|
|
Loading…
Reference in a new issue