mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
Merge pull request #14311 from aknuds1/arve/loggercheck
golangci-lint: Enable loggercheck linter
This commit is contained in:
commit
f45b0fd9ef
|
@ -29,6 +29,7 @@ linters:
|
||||||
- unused
|
- unused
|
||||||
- usestdlibvars
|
- usestdlibvars
|
||||||
- whitespace
|
- whitespace
|
||||||
|
- loggercheck
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
||||||
|
|
|
@ -200,7 +200,7 @@ func (tc *ZookeeperTreeCache) loop(path string) {
|
||||||
failure()
|
failure()
|
||||||
} else {
|
} else {
|
||||||
tc.resyncState(tc.prefix, tc.head, previousState)
|
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
|
failureMode = false
|
||||||
}
|
}
|
||||||
case <-tc.stop:
|
case <-tc.stop:
|
||||||
|
|
Loading…
Reference in a new issue