Skip to content

Commit

Permalink
Merge pull request #14311 from aknuds1/arve/loggercheck
Browse files Browse the repository at this point in the history
golangci-lint: Enable loggercheck linter
  • Loading branch information
aknuds1 authored Jun 19, 2024
2 parents 9a8b6c5 + 5a1886d commit f45b0fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ linters:
- unused
- usestdlibvars
- whitespace
- loggercheck

issues:
max-same-issues: 0
Expand Down
2 changes: 1 addition & 1 deletion util/treecache/treecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f45b0fd

Please sign in to comment.