aboutsummaryrefslogtreecommitdiff
path: root/chunk.go
diff options
context:
space:
mode:
Diffstat (limited to 'chunk.go')
-rw-r--r--chunk.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/chunk.go b/chunk.go
index 0746fde..20dfe58 100644
--- a/chunk.go
+++ b/chunk.go
@@ -45,9 +45,11 @@ func (c *Chunk) Read(buff []byte) (int, error) {
func (c *Chunk) Reader() (ChunkReader, error) {
if c.Value != nil {
+ log.Printf("Chunk %d: Reading from in-memory value\n", c.Id)
return bytes.NewReader(c.Value), nil
}
if c.Id != nil {
+ log.Printf("Chunk %d: Reading from file\n", c.Id)
return c.Id.Reader(c.Repo.path), nil
}
return nil, &ChunkError{"Uninitialized chunk"}