mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
modify the warning log format from %d to %v
This commit is contained in:
parent
fa13dc11d1
commit
ac1168e0e9
@ -485,13 +485,13 @@ func (s *sharedIndexInformer) AddEventHandlerWithResyncPeriod(handler ResourceEv
|
|||||||
|
|
||||||
if resyncPeriod > 0 {
|
if resyncPeriod > 0 {
|
||||||
if resyncPeriod < minimumResyncPeriod {
|
if resyncPeriod < minimumResyncPeriod {
|
||||||
klog.Warningf("resyncPeriod %d is too small. Changing it to the minimum allowed value of %d", resyncPeriod, minimumResyncPeriod)
|
klog.Warningf("resyncPeriod %v is too small. Changing it to the minimum allowed value of %v", resyncPeriod, minimumResyncPeriod)
|
||||||
resyncPeriod = minimumResyncPeriod
|
resyncPeriod = minimumResyncPeriod
|
||||||
}
|
}
|
||||||
|
|
||||||
if resyncPeriod < s.resyncCheckPeriod {
|
if resyncPeriod < s.resyncCheckPeriod {
|
||||||
if s.started {
|
if s.started {
|
||||||
klog.Warningf("resyncPeriod %d is smaller than resyncCheckPeriod %d and the informer has already started. Changing it to %d", resyncPeriod, s.resyncCheckPeriod, s.resyncCheckPeriod)
|
klog.Warningf("resyncPeriod %v is smaller than resyncCheckPeriod %v and the informer has already started. Changing it to %v", resyncPeriod, s.resyncCheckPeriod, s.resyncCheckPeriod)
|
||||||
resyncPeriod = s.resyncCheckPeriod
|
resyncPeriod = s.resyncCheckPeriod
|
||||||
} else {
|
} else {
|
||||||
// if the event handler's resyncPeriod is smaller than the current resyncCheckPeriod, update
|
// if the event handler's resyncPeriod is smaller than the current resyncCheckPeriod, update
|
||||||
|
Loading…
Reference in New Issue
Block a user