Skip to content

Commit

Permalink
fix(logging): update log level to trace to reduce noise
Browse files Browse the repository at this point in the history
longhorn/longhorn-9011

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
(cherry picked from commit 1cd29fd)
  • Loading branch information
c3y1huang authored and derekbit committed Sep 4, 2024
1 parent 0f7c0c2 commit 2ae134c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller/volume_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ae134c

Please sign in to comment.