From 84ce8c348782783b66a8c7db97812f0108a5da1d Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 27 Sep 2018 09:34:58 -0700 Subject: [PATCH] extra logging --- command/agent/plugins.go | 2 +- plugins/shared/loader/init.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/command/agent/plugins.go b/command/agent/plugins.go index a0226246a..6637d69f9 100644 --- a/command/agent/plugins.go +++ b/command/agent/plugins.go @@ -56,7 +56,7 @@ func (a *Agent) internalPluginConfigs() (map[loader.PluginID]*loader.InternalPlu for id, reg := range catalog { if reg.Config == nil { - a.logger.Warn("skipping loading internal plugin because it is missing its configuration", "plugin", id) + a.logger.Error("skipping loading internal plugin because it is missing its configuration", "plugin", id) continue } diff --git a/plugins/shared/loader/init.go b/plugins/shared/loader/init.go index 1f9a48f54..da15623e3 100644 --- a/plugins/shared/loader/init.go +++ b/plugins/shared/loader/init.go @@ -156,6 +156,7 @@ func (l *PluginLoader) scan() ([]os.FileInfo, error) { if err != nil { // There are no plugins to scan if os.IsNotExist(err) { + l.logger.Debug("skipping external plugins since plugin_dir doesn't exist") return nil, nil }