1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-01-03 13:45:20 +00:00

Fix calls to debug()

This commit is contained in:
Alexander Neumann 2015-01-14 17:48:10 +01:00
parent 219c0e82bb
commit 4e54c6af2c

View file

@ -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 // SaveFile stores the content of the file on the backend as a Blob by calling
// Save for each chunk. // Save for each chunk.
func (arch *Archiver) SaveFile(node *Node) (Blobs, error) { func (arch *Archiver) SaveFile(node *Node) (Blobs, error) {
debug("SaveFile(%q)\n", node.path)
file, err := os.Open(node.path) file, err := os.Open(node.path)
defer file.Close() defer file.Close()
if err != nil { 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) 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 return blobs, nil
} }