Merge pull request #14311 from aknuds1/arve/loggercheck

golangci-lint: Enable loggercheck linter
This commit is contained in:
Arve Knudsen 2024-06-19 12:02:41 +02:00 committed by GitHub
commit f45b0fd9ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ linters:
- unused
- usestdlibvars
- whitespace
- loggercheck
issues:
max-same-issues: 0

View File

@ -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: