From 4e54c6af2ca6dd2368e454c40717626b72d4c88a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Wed, 14 Jan 2015 17:48:10 +0100 Subject: [PATCH] Fix calls to debug() --- archiver.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/archiver.go b/archiver.go index 8a4760115..36f569829 100644 --- a/archiver.go +++ b/archiver.go @@ -131,8 +131,6 @@ func (arch *Archiver) SaveTreeJSON(item interface{}) (Blob, error) { // SaveFile stores the content of the file on the backend as a Blob by calling // Save for each chunk. func (arch *Archiver) SaveFile(node *Node) (Blobs, error) { - debug("SaveFile(%q)\n", node.path) - file, err := os.Open(node.path) defer file.Close() if err != nil { @@ -256,7 +254,7 @@ func (arch *Archiver) SaveFile(node *Node) (Blobs, error) { return nil, fmt.Errorf("errors saving node %q: saved %d bytes, wanted %d bytes", node.path, bytes, node.Size) } - debug("SaveFile(%q): %v\n", node.path, blobs) + debug("Archiver.SaveFile", "SaveFile(%q): %v\n", node.path, blobs) return blobs, nil }