mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
improve discovery logging
Display whether we're looking for a provider or provisioner in the log messages.
This commit is contained in:
parent
85b9069eb7
commit
beebd5cee3
1 changed files with 4 additions and 4 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue