From 9234d7c73f2b212e0ef46266ea1f7c49858ff7d3 Mon Sep 17 00:00:00 2001 From: rahulguptajss Date: Fri, 25 Oct 2024 18:02:28 +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 e64daaf1a..6b1832cdf 100644 --- a/cmd/collectors/rest/plugins/volume/volume.go +++ b/cmd/collectors/rest/plugins/volume/volume.go @@ -94,7 +94,7 @@ func (v *Volume) Init() error { if err != nil { return fmt.Errorf("unable to get version %w", err) } - enableVolumeLogging = os.Getenv("ENABLE_VOLUME_LOGGING") == "true" + enableVolumeLogging = os.Getenv("ENABLE_VOLUME_LOGGING") != "" return nil }