瀏覽代碼

feat(plugins): adds warn log for scanning folders

symlinks outside to plugin folder can cause problems.
This commit makes sure to warn about it in the logs
bergquist 10 年之前
父節點
當前提交
9343b0378d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/plugins/plugins.go

+ 1 - 0
pkg/plugins/plugins.go

@@ -55,6 +55,7 @@ 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)
 		return err
 	}