Add additional debug

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-11-20 14:44:39 +01:00
parent 3a96a00362
commit b4c6832828

View File

@ -148,6 +148,7 @@ var _ Locator = (*file)(nil)
func (p file) Locate(pattern string) ([]string, error) { func (p file) Locate(pattern string) ([]string, error) {
var filenames []string var filenames []string
p.logger.Debugf("Locating %q in %v", pattern, p.prefixes)
visit: visit:
for _, prefix := range p.prefixes { for _, prefix := range p.prefixes {
pathPattern := filepath.Join(prefix, pattern) pathPattern := filepath.Join(prefix, pattern)