Refactor debug into debug module

This commit is contained in:
Alexander Neumann
2015-01-14 22:08:48 +01:00
parent bcb19c811b
commit 25a214809b
18 changed files with 318 additions and 238 deletions

3
map.go
View File

@@ -8,6 +8,7 @@ import (
"sync"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
)
type Map struct {
@@ -85,7 +86,7 @@ func (bl *Map) Insert(blob Blob) Blob {
bl.m.Lock()
defer bl.m.Unlock()
debug("Map.Insert", " Map<%p> insert %v", bl, blob)
debug.Log("Map.Insert", " Map<%p> insert %v", bl, blob)
return bl.insert(blob)
}