From 73e92f7069f1ae0d698198c6b43ccb400d2c10f6 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 10 Jul 2023 09:28:47 +0800 Subject: [PATCH 1/2] fix(recurring-job): flooded source label log ref: 6257 Signed-off-by: Chin-Ya Huang --- controller/volume_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/volume_controller.go b/controller/volume_controller.go index ec9e1ef8c5..c5301b27fd 100644 --- a/controller/volume_controller.go +++ b/controller/volume_controller.go @@ -3647,7 +3647,8 @@ func (c *VolumeController) syncPVCRecurringJobLabels(volume *longhorn.Volume) er } if !hasSourceLabel { - c.logger.Warnf("Ignoring recurring job labels on Volume %v PVC %v due to missing source label", volume.Name, pvc.Name) + c.logger.Debugf("Ignoring recurring job labels on Volume %v PVC %v due to missing source label", volume.Name, pvc.Name) + return nil } From 2c5b6234d5766344836e24f5c8faeb9c1f04d48a Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 10 Jul 2023 10:08:10 +0800 Subject: [PATCH 2/2] fix: change default log level to info Signed-off-by: Chin-Ya Huang --- types/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/setting.go b/types/setting.go index 69f0070ac2..2ee748cea2 100644 --- a/types/setting.go +++ b/types/setting.go @@ -1064,7 +1064,7 @@ var ( Type: SettingTypeString, Required: true, ReadOnly: false, - Default: "Debug", + Default: "Info", } SettingDefinitionOfflineReplicaRebuilding = SettingDefinition{