mirror of
https://github.com/grafana/grafana.git
synced 2025-01-07 14:43:42 -06:00
Plugins: fix debug formatting when scanning for files (#23484)
This commit is contained in:
parent
4d81cec34f
commit
a56615749a
@ -182,11 +182,11 @@ func (pm *PluginManager) scan(pluginDir string) error {
|
||||
|
||||
if err := util.Walk(pluginDir, true, true, scanner.walker); err != nil {
|
||||
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
|
||||
}
|
||||
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
|
||||
}
|
||||
if pluginDir != "data/plugins" {
|
||||
|
Loading…
Reference in New Issue
Block a user