From 2bc48761ded1b18ac74eb16e3d18c575b36b5175 Mon Sep 17 00:00:00 2001 From: rahulguptajss Date: Fri, 25 Oct 2024 18:01:02 +0530 Subject: [PATCH] style: add debug logs for volume plugin --- cmd/collectors/rest/plugins/volume/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/collectors/rest/plugins/volume/volume.go b/cmd/collectors/rest/plugins/volume/volume.go index e3965f1fd..e64daaf1a 100644 --- a/cmd/collectors/rest/plugins/volume/volume.go +++ b/cmd/collectors/rest/plugins/volume/volume.go @@ -163,7 +163,7 @@ func (v *Volume) updateVolumeLabels(data *matrix.Matrix, volumeMap map[string]vo if vInfo, ok := volumeMap[volume.GetLabel("volume")+volume.GetLabel("svm")]; ok { if vInfo.isObjectStoreVolume { - if os.Getenv("ENABLE_VOLUME_LOGGING") == "true" { + if enableVolumeLogging { v.SLogger.Warn("Setting exportable for object store volume", slog.String("volume", volume.GetLabel("volume")), slog.Bool("exportable", false)) } volume.SetExportable(false)