diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-20 11:00:59 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-09-20 11:00:59 +0200 |
commit | 129032a13d19d500011fe23bcdd232b87eeb9b2f (patch) | |
tree | 60eb900d47ab40f58c99c4efbad3f139122d1785 | |
parent | 9a7f82c57d23b532c16ffdc446c248364a8b70e0 (diff) | |
download | dna-backup-129032a13d19d500011fe23bcdd232b87eeb9b2f.tar.gz dna-backup-129032a13d19d500011fe23bcdd232b87eeb9b2f.zip |
less noisy file read errors
-rw-r--r-- | repo.go | 2 | ||||
-rw-r--r-- | tar.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -226,7 +226,7 @@ func concatFiles(files []File, stream io.WriteCloser) { for _, f := range files { file, err := os.Open(f.Path) if err != nil { - logger.Errorf("reading file '%s': %s", f.Path, err) + logger.Error(err) continue } if n, err := io.Copy(stream, file); err != nil { @@ -13,7 +13,7 @@ func streamFilesTar(files []File, stream io.WriteCloser) { for _, f := range files { file, err := os.Open(f.Path) if err != nil { - logger.Errorf("reading file '%s': %s", f.Path, err) + logger.Error(err) continue } stat, err := file.Stat() |