Change loglevel for copying files to debug (#303)

This commit is contained in:
Deniz Zoeteman 2018-10-12 16:16:48 +02:00 committed by GitHub
parent aabb97b944
commit 129eb9b8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ func CopyDir(src, dest string) ([]string, error) {
} }
destPath := filepath.Join(dest, file) destPath := filepath.Join(dest, file)
if fi.IsDir() { if fi.IsDir() {
logrus.Infof("Creating directory %s", destPath) logrus.Debugf("Creating directory %s", destPath)
uid := int(fi.Sys().(*syscall.Stat_t).Uid) uid := int(fi.Sys().(*syscall.Stat_t).Uid)
gid := int(fi.Sys().(*syscall.Stat_t).Gid) gid := int(fi.Sys().(*syscall.Stat_t).Gid)
@ -511,7 +511,7 @@ func CopyFile(src, dest string) error {
if err != nil { if err != nil {
return err return err
} }
logrus.Infof("Copying file %s to %s", src, dest) logrus.Debugf("Copying file %s to %s", src, dest)
srcFile, err := os.Open(src) srcFile, err := os.Open(src)
if err != nil { if err != nil {
return err return err