From 3ce01642814e3b180596a6d083a5c795a20e50fa Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Sun, 16 Feb 2020 11:54:56 -0800 Subject: [PATCH] add logging for prune --- pkg/drivers/kic/oci/volumes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/drivers/kic/oci/volumes.go b/pkg/drivers/kic/oci/volumes.go index 5aedd6aff5..74b84991bf 100644 --- a/pkg/drivers/kic/oci/volumes.go +++ b/pkg/drivers/kic/oci/volumes.go @@ -19,12 +19,14 @@ package oci import ( "os/exec" + "github.com/golang/glog" "github.com/pkg/errors" ) // DeleteAllVolumesByLabel delets all volumes that have a specific label // example: docker volume prune -f --filter label=name.minikube.sigs.k8s.io=minikube func DeleteAllVolumesByLabel(ociBin string, label string) error { + glog.Infof("trying to prune all %s volumes with label %s", ociBin, label) if ociBin == Docker { if err := PointToHostDockerDaemon(); err != nil { return errors.Wrap(err, "point host docker-daemon")