From ac61ff24d5eeb8790d821eae598db2e84717281c Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Wed, 30 Oct 2024 22:30:58 +0300 Subject: [PATCH] some logs improvement Signed-off-by: Aleksandr Zimin --- images/agent/src/pkg/controller/lvm_volume_group_watcher_func.go | 1 + 1 file changed, 1 insertion(+) diff --git a/images/agent/src/pkg/controller/lvm_volume_group_watcher_func.go b/images/agent/src/pkg/controller/lvm_volume_group_watcher_func.go index 85751f06..95f28e52 100644 --- a/images/agent/src/pkg/controller/lvm_volume_group_watcher_func.go +++ b/images/agent/src/pkg/controller/lvm_volume_group_watcher_func.go @@ -841,6 +841,7 @@ func getLVMVolumeGroup(ctx context.Context, cl client.Client, metrics monitoring func DeleteVGIfExist(log logger.Logger, metrics monitoring.Metrics, sdsCache *cache.Cache, vgName string) error { vgs, _ := sdsCache.GetVGs() + log.Trace(fmt.Sprintf("[DeleteVGIfExist] check if VG %s exists in vgs %v", vgName, vgs)) if !checkIfVGExist(vgName, vgs) { log.Debug(fmt.Sprintf("[DeleteVGIfExist] no VG %s found, nothing to delete", vgName)) return nil