From 2ae134c0d9c84ad1e2c77f6f91fc1172f1a3e38f 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 (cherry picked from commit 1cd29fdc6aceec93265cb7c7ff00c8185a0de9cb) --- 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 67fdebb6d3..0f66bbf13d 100644 --- a/controller/volume_controller.go +++ b/controller/volume_controller.go @@ -2551,6 +2551,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 { @@ -2581,7 +2583,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