From beebd5cee3aed09cb4000d2151aa7abeba2e4543 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 27 Jun 2017 11:09:54 -0400 Subject: [PATCH] improve discovery logging Display whether we're looking for a provider or provisioner in the log messages. --- plugin/discovery/find.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/discovery/find.go b/plugin/discovery/find.go index 51839ccad..127670080 100644 --- a/plugin/discovery/find.go +++ b/plugin/discovery/find.go @@ -53,13 +53,13 @@ func findPluginPaths(kind string, dirs []string) []string { continue } - log.Printf("[DEBUG] checking for plugins in %q", dir) + log.Printf("[DEBUG] checking for %s in %q", kind, dir) for _, item := range items { fullName := item.Name() if !strings.HasPrefix(fullName, prefix) { - log.Printf("[DEBUG] skipping %q, not a plugin", fullName) + log.Printf("[DEBUG] skipping %q, not a %s", fullName, kind) continue } @@ -71,7 +71,7 @@ func findPluginPaths(kind string, dirs []string) []string { continue } - log.Printf("[DEBUG] found plugin %q", fullName) + log.Printf("[DEBUG] found %s %q", kind, fullName) ret = append(ret, filepath.Clean(absPath)) continue } @@ -83,7 +83,7 @@ func findPluginPaths(kind string, dirs []string) []string { continue } - log.Printf("[WARNING] found legacy plugin %q", fullName) + log.Printf("[WARNING] found legacy %s %q", kind, fullName) ret = append(ret, filepath.Clean(absPath)) }