forked from TrueCloudLab/rclone
local: put debug statements in on Read FIXME WIP
This commit is contained in:
parent
a2341cc412
commit
5f37c6f258
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -742,6 +743,7 @@ func (file *localOpenFile) Read(p []byte) (n int, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
n, err = file.in.Read(p)
|
n, err = file.in.Read(p)
|
||||||
|
log.Printf("*** Read result n=%d, err=%v, len(p)=%d", n, err, len(p))
|
||||||
if n > 0 {
|
if n > 0 {
|
||||||
// Hash routines never return an error
|
// Hash routines never return an error
|
||||||
_, _ = file.hash.Write(p[:n])
|
_, _ = file.hash.Write(p[:n])
|
||||||
|
|
Loading…
Add table
Reference in a new issue