From 4a76f0f4debc6322c28bf2d4d573eea84303f5e1 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Thu, 24 Oct 2024 17:30:25 +0800 Subject: [PATCH] chore: enhance logging Signed-off-by: Chin-Ya Huang --- controller/volume_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/volume_controller.go b/controller/volume_controller.go index c25e2674ae..ac9c40883d 100644 --- a/controller/volume_controller.go +++ b/controller/volume_controller.go @@ -1388,7 +1388,7 @@ func (c *VolumeController) ReconcileVolumeState(v *longhorn.Volume, es map[strin if !dataExists { log.Warn("Failed to auto salvage volume: no data exists") } else { - log.Info("Bringing up replicas for auto-salvage") + log.WithField("failedUsableReplicas", len(failedUsableReplicas)).Info("Bringing up replicas for auto-salvage") // This salvage is for revision counter enabled case salvaged := false