changing log level

This commit is contained in:
Prashant Arya
2019-11-26 17:52:11 +00:00
parent e0e59e619c
commit 857715012f
5 changed files with 11 additions and 13 deletions
+2 -2
View File
@@ -206,7 +206,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)
@@ -496,7 +496,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)