Skip to content

Commit

Permalink
Cherrypicking log level change from v0.36.x (#578)
Browse files Browse the repository at this point in the history
Co-authored-by: nil-scan <[email protected]>
  • Loading branch information
ryanrolds and nil-scan authored Feb 13, 2025
1 parent e0ea3c3 commit d0c921e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/v0.35.6/downgrade-log-level.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
changelog:
- type: FIX
issueLink: https://github.com/solo-io/solo-projects/issues/7530
resolvesIssue: false
description: >-
Downgrade the level of message "respond open watch priority %d and index %d :%v with new version %q" to debug.
4 changes: 2 additions & 2 deletions pkg/api/v1/control-plane/cache/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (cache *snapshotCache) SetSnapshot(node string, snapshot Snapshot) {
version := snapshot.GetResources(watch.Request.TypeUrl).Version
if version != watch.Request.VersionInfo {
if cache.log != nil {
cache.log.Infof("respond open watch priority %d and index %d :%v with new version %q", pi.Index, pi.Priority, watch.Request.ResourceNames, version)
cache.log.Debugf("respond open watch priority %d and index %d :%v with new version %q", pi.Index, pi.Priority, watch.Request.ResourceNames, version)
}

resources := snapshot.GetResources(watch.Request.TypeUrl).Items
Expand Down Expand Up @@ -273,7 +273,7 @@ func (cache *snapshotCache) CreateWatch(request Request) (chan Response, func())
priority := info.watches.Add(ResponseWatch{Request: request, Response: value})
info.mu.Unlock()
if cache.log != nil {
cache.log.Infof("open watch Priority Index %d and Element Index %d for %s%v from nodeID %q, version %q",
cache.log.Debugf("open watch Priority Index %d and Element Index %d for %s%v from nodeID %q, version %q",
priority.Priority, priority.Index, request.TypeUrl, request.ResourceNames, nodeID, request.VersionInfo)
}
return value, cache.cancelWatch(nodeID, priority)
Expand Down

0 comments on commit d0c921e

Please sign in to comment.