From 1cd29fdc6aceec93265cb7c7ff00c8185a0de9cb Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Wed, 4 Sep 2024 15:38:31 +0800 Subject: [PATCH] fix(logging): update log level to trace to reduce noise longhorn/longhorn-9011 Signed-off-by: Chin-Ya Huang --- controller/volume_controller.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controller/volume_controller.go b/controller/volume_controller.go index 2bcced67fd..b1dbdc92a6 100644 --- a/controller/volume_controller.go +++ b/controller/volume_controller.go @@ -2743,6 +2743,8 @@ func (c *VolumeController) listReadySchedulableAndScheduledNodesRO(volume *longh } } + log.WithField("volume", volume.Name).Tracef("Found %v ready and schedulable nodes", len(filteredReadyNodes)) + // Including unschedulable node because the replica is already scheduled and running // Ref: https://github.com/longhorn/longhorn/issues/4502 for _, r := range rs { @@ -2773,7 +2775,8 @@ func (c *VolumeController) listReadySchedulableAndScheduledNodesRO(volume *longh log.WithFields(logrus.Fields{ "replica": r.Name, "node": node.Name, - }).Warnf("Including unschedulable node because the replica is scheduled and running") + "reason": "replica is scheduled and running", + }).Trace("Including unschedulable node") } return filteredReadyNodes, nil