From a56615749a52fadf137903660065f067ca87730f Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Fri, 10 Apr 2020 00:45:07 -0700 Subject: [PATCH] Plugins: fix debug formatting when scanning for files (#23484) --- pkg/plugins/plugins.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/plugins/plugins.go b/pkg/plugins/plugins.go index 48c13cae829..ccf3ea8d3dc 100644 --- a/pkg/plugins/plugins.go +++ b/pkg/plugins/plugins.go @@ -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" {