diff --git a/pkg/snapshot/snapshot.go b/pkg/snapshot/snapshot.go index b54897d59..067e347f0 100644 --- a/pkg/snapshot/snapshot.go +++ b/pkg/snapshot/snapshot.go @@ -134,7 +134,7 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) { Callback: func(path string, ent *godirwalk.Dirent) error { if util.IsInWhitelist(path) { if util.IsDestDir(path) { - logrus.Debugf("Skipping paths under %s, as it is a whitelisted directory", path) + logrus.Tracef("Skipping paths under %s, as it is a whitelisted directory", path) return filepath.SkipDir } return nil @@ -170,7 +170,7 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) { filesToAdd := []string{} for path := range memFs { if util.CheckWhitelist(path) { - logrus.Debugf("Not adding %s to layer, as it's whitelisted", path) + logrus.Tracef("Not adding %s to layer, as it's whitelisted", path) continue } // Only add changed files. @@ -179,7 +179,7 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) { return nil, nil, fmt.Errorf("could not check if file has changed %s %s", path, err) } if fileChanged { - logrus.Debugf("Adding %s to layer, because it was changed.", path) + logrus.Tracef("Adding %s to layer, because it was changed.", path) filesToAdd = append(filesToAdd, path) } } diff --git a/pkg/util/fs_util.go b/pkg/util/fs_util.go index f7022e8ec..0792e1d66 100644 --- a/pkg/util/fs_util.go +++ b/pkg/util/fs_util.go @@ -214,7 +214,7 @@ func ExtractFile(dest string, hdr *tar.Header, tr io.Reader) error { } switch hdr.Typeflag { case tar.TypeReg: - logrus.Debugf("creating file %s", path) + logrus.Tracef("creating file %s", path) // It's possible a file is in the tar before its directory, // or a file was copied over a directory prior to now fi, err := os.Stat(dir) @@ -510,7 +510,7 @@ func CopyDir(src, dest, buildcontext string) ([]string, error) { } destPath := filepath.Join(dest, file) if fi.IsDir() { - logrus.Debugf("Creating directory %s", destPath) + logrus.Tracef("Creating directory %s", destPath) mode := fi.Mode() uid := int(fi.Sys().(*syscall.Stat_t).Uid)