Skip to content

Commit

Permalink
style: add debug logs for volume plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Oct 25, 2024
1 parent fb5920e commit 2bc4876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/collectors/rest/plugins/volume/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2bc4876

Please sign in to comment.