mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:05:05 +08:00
local: put debug statements in on Read FIXME WIP
This commit is contained in:
parent
a2341cc412
commit
5f37c6f258
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
@ -742,6 +743,7 @@ func (file *localOpenFile) Read(p []byte) (n int, err error) {
|
|||
}
|
||||
|
||||
n, err = file.in.Read(p)
|
||||
log.Printf("*** Read result n=%d, err=%v, len(p)=%d", n, err, len(p))
|
||||
if n > 0 {
|
||||
// Hash routines never return an error
|
||||
_, _ = file.hash.Write(p[:n])
|
||||
|
|
Loading…
Reference in New Issue
Block a user