Skip to content

Commit 1c75684

Browse files
authored
Merge pull request kubernetes#130591 from fmuyassarov/devel/logging
Refine logging levels in job, IPAM, and replicaSet
2 parents e0ab1a1 + 4c69710 commit 1c75684

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/controller/job/job_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ func (jm *Controller) enqueueSyncJobInternal(logger klog.Logger, obj interface{}
595595
// all controllers there will still be some replica instability. One way to handle this is
596596
// by querying the store for all controllers that this rc overlaps, as well as all
597597
// controllers that overlap this rc, and sorting them.
598-
logger.Info("enqueueing job", "key", key, "delay", delay)
598+
logger.V(2).Info("enqueueing job", "key", key, "delay", delay)
599599
jm.queue.AddAfter(key, delay)
600600
}
601601

pkg/controller/nodeipam/ipam/range_allocator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (r *rangeAllocator) processNextNodeWorkItem(ctx context.Context) bool {
244244
// Finally, if no error occurs we Forget this item so it does not
245245
// get queue again until another change happens.
246246
r.queue.Forget(obj)
247-
logger.Info("Successfully synced", "key", key)
247+
logger.V(4).Info("Successfully synced", "key", key)
248248
return nil
249249
}(klog.FromContext(ctx), obj)
250250

pkg/controller/replicaset/replica_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ func (rsc *ReplicaSetController) syncReplicaSet(ctx context.Context, key string)
678678
logger := klog.FromContext(ctx)
679679
startTime := time.Now()
680680
defer func() {
681-
logger.Info("Finished syncing", "kind", rsc.Kind, "key", key, "duration", time.Since(startTime))
681+
logger.V(4).Info("Finished syncing", "kind", rsc.Kind, "key", key, "duration", time.Since(startTime))
682682
}()
683683

684684
namespace, name, err := cache.SplitMetaNamespaceKey(key)

0 commit comments

Comments
 (0)