Skip to content

Commit 3ee9532

Browse files
committed
trivial: downgrade log level in SetPodEntries & SetPodResourceEntries
1 parent 9a51efa commit 3ee9532

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pkg/agent/qrm-plugins/cpu/dynamicpolicy/state/state_mem.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ func (s *cpuPluginState) SetPodEntries(podEntries PodEntries) {
137137
defer s.Unlock()
138138

139139
s.podEntries = podEntries.Clone()
140-
klog.InfoS("[cpu_plugin] Updated cpu plugin pod entries",
141-
"podEntries", podEntries.String())
140+
if klog.V(6).Enabled() {
141+
klog.InfoS("[cpu_plugin] Updated cpu plugin pod entries",
142+
"podEntries", podEntries.String())
143+
}
142144
}
143145

144146
func (s *cpuPluginState) SetAllowSharedCoresOverlapReclaimedCores(allowSharedCoresOverlapReclaimedCores bool) {

pkg/agent/qrm-plugins/memory/dynamicpolicy/state/state_mem.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,10 @@ func (s *memoryPluginState) SetPodResourceEntries(podResourceEntries PodResource
166166
defer s.Unlock()
167167

168168
s.podResourceEntries = podResourceEntries.Clone()
169-
klog.InfoS("[memory_plugin] Updated memory plugin pod resource entries",
170-
"podResourceEntries", podResourceEntries.String())
169+
if klog.V(6).Enabled() {
170+
klog.InfoS("[memory_plugin] Updated memory plugin pod resource entries",
171+
"podResourceEntries", podResourceEntries.String())
172+
}
171173
}
172174

173175
func (s *memoryPluginState) Delete(resourceName v1.ResourceName, podUID, containerName string) {

0 commit comments

Comments
 (0)