From 5f37c6f258f0f19d24de7c1a4eda96f40b7707a3 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 21 Jan 2019 17:08:27 +0000 Subject: [PATCH] local: put debug statements in on Read FIXME WIP --- backend/local/local.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/local/local.go b/backend/local/local.go index d86951720..d31ea9c3e 100644 --- a/backend/local/local.go +++ b/backend/local/local.go @@ -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])