fix(sympath): switch to using klog over log to allow disabling output

Signed-off-by: Griffin Dunn <griffin.dunn@datadoghq.com>
pull/7523/head
Griffin Dunn 6 years ago
parent 1d6f51d54a
commit fb508723e8
No known key found for this signature in database
GPG Key ID: 157BA1815601B23A

@ -26,6 +26,7 @@ import (
"sort"
"github.com/pkg/errors"
"k8s.io/klog"
)
// Walk walks the file tree rooted at root, calling walkFn for each file or directory
@ -70,6 +71,7 @@ func symwalk(path string, info os.FileInfo, walkFn filepath.WalkFunc) error {
if err != nil {
return errors.Wrapf(err, "error evaluating symlink %s", path)
}
klog.V(0).Infof("found symbolic link in path: %s resolves to %s", path, resolved)
if info, err = os.Lstat(resolved); err != nil {
return err
}

Loading…
Cancel
Save