mirror of
https://github.com/restic/restic.git
synced 2025-10-29 13:08:45 +00:00
Refactor debug into debug module
This commit is contained in:
3
map.go
3
map.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user