From 6d77c5aa81199be8dbbb047e7c247240e0dbe3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Pab=C3=B3n?= Date: Thu, 18 Mar 2021 11:23:35 -0700 Subject: [PATCH] Remove warnings from component scan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Warnings showed up on directories in the PATH which did not exist. Closes #178 Signed-off-by: Luis Pabón --- pkg/plugin/list.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/plugin/list.go b/pkg/plugin/list.go index 5f8f9a9c..820ce43f 100644 --- a/pkg/plugin/list.go +++ b/pkg/plugin/list.go @@ -32,7 +32,6 @@ import ( "github.com/portworx/pxc/pkg/config" "github.com/portworx/pxc/pkg/util" - "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -79,7 +78,6 @@ func (o *PluginLister) GetList() ([]*Component, error) { files, err := ioutil.ReadDir(dir) if err != nil { if _, ok := err.(*os.PathError); ok { - logrus.Warnf("Unable read directory %q from your PATH: %v. Skipping...", dir, err) continue }