Commit a5661574 by Ryan McKinley Committed by GitHub

Plugins: fix debug formatting when scanning for files (#23484)

parent 4d81cec3
...@@ -182,11 +182,11 @@ func (pm *PluginManager) scan(pluginDir string) error { ...@@ -182,11 +182,11 @@ func (pm *PluginManager) scan(pluginDir string) error {
if err := util.Walk(pluginDir, true, true, scanner.walker); err != nil { if err := util.Walk(pluginDir, true, true, scanner.walker); err != nil {
if xerrors.Is(err, os.ErrNotExist) { if xerrors.Is(err, os.ErrNotExist) {
pm.log.Debug("Couldn't scan dir '%s' since it doesn't exist") pm.log.Debug("Couldn't scan directory since it doesn't exist", "pluginDir", pluginDir)
return nil return nil
} }
if xerrors.Is(err, os.ErrPermission) { if xerrors.Is(err, os.ErrPermission) {
pm.log.Debug("Couldn't scan dir '%s' due to lack of permissions") pm.log.Debug("Couldn't scan directory due to lack of permissions", "pluginDir", pluginDir)
return nil return nil
} }
if pluginDir != "data/plugins" { if pluginDir != "data/plugins" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment