Don't log missing files during hashing
This commit is contained in:
parent
cbac2ecaff
commit
6f470a2d02
|
@ -9,6 +9,7 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
@ -626,7 +627,7 @@ func (t *Torrent) hashPiece(piece int) (ret metainfo.Hash) {
|
||||||
missinggo.CopyExact(&ret, hash.Sum(nil))
|
missinggo.CopyExact(&ret, hash.Sum(nil))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err != io.ErrUnexpectedEOF {
|
if err != io.ErrUnexpectedEOF && !os.IsNotExist(err) {
|
||||||
log.Printf("unexpected error hashing piece with %T: %s", t.storage, err)
|
log.Printf("unexpected error hashing piece with %T: %s", t.storage, err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue