Parcourir la source

fix(plugins): removes warnings for missing folder

Remove warnings when scanning for plugins in the default
catalog data/plugins

closes #3663
bergquist il y a 10 ans
Parent
commit
5792a16222
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      pkg/plugins/plugins.go

+ 3 - 1
pkg/plugins/plugins.go

@@ -55,7 +55,9 @@ func scan(pluginDir string) error {
 	}
 
 	if err := util.Walk(pluginDir, true, true, scanner.walker); err != nil {
-		log.Warn("Failed to scan dir \"%v\" error: %s", pluginDir, err)
+		if pluginDir != "data/plugins" {
+			log.Warn("Could not scan dir \"%v\" error: %s", pluginDir, err)
+		}
 		return err
 	}