mirror of
https://github.com/restic/restic.git
synced 2026-12-04 15:44:46 +00:00
fix debug logs with missing parameters
This commit is contained in:
1 parent
152c2720bb
commit
1227b2ab7e
2 files changed
+2
-2
No files matched your search
@@ -848,7 +848,7 @@ func (arch *Archiver) loadParentTree(ctx context.Context, sn *data.Snapshot) dat
|
||||
}
|
||||
|
||||
if sn.Tree == nil {
|
||||
debug.Log("snapshot %v has empty tree %v", *sn.ID())
|
||||
debug.Log("snapshot %v has empty tree", *sn.ID())
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ var Full = func(idx *Index) bool {
|
||||
|
||||
switch {
|
||||
case age >= indexMaxAge:
|
||||
debug.Log("index %p is old enough", idx, age)
|
||||
debug.Log("index %p is old enough %v", idx, age)
|
||||
return true
|
||||
case blobs >= indexMaxBlobs:
|
||||
debug.Log("index %p has %d blobs", idx, blobs)
|
||||
|
||||
Reference in new issue
Block a user