summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-04-04 15:34:01 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-04-04 18:29:09 -0600
commitd7dd6dfd7aeb40f06ff4fbe7f906d8feed64b95f (patch)
tree8bb4b70337a299f1dacb3c2858210d4bf6bd4b04
parent848a8def00e531a25233bb5550dfba35faa303a5 (diff)
btrfsutil: RebuiltForrest: Include more info when logging failures
-rw-r--r--lib/btrfsutil/rebuilt_forrest.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/btrfsutil/rebuilt_forrest.go b/lib/btrfsutil/rebuilt_forrest.go
index 7f239c3..ba88bbc 100644
--- a/lib/btrfsutil/rebuilt_forrest.go
+++ b/lib/btrfsutil/rebuilt_forrest.go
@@ -239,11 +239,11 @@ func (ts *RebuiltForrest) addTree(ctx context.Context, treeID btrfsprim.ObjID, s
}
parentID, ok := ts.cb.LookupUUID(ctx, rootItem.ParentUUID)
if !ok {
- dlog.Error(ctx, "failed to add tree: lookup UUID")
+ dlog.Errorf(ctx, "failed to add tree: lookup UUID %v", rootItem.ParentUUID)
return false
}
if !ts.addTree(ctx, parentID, stack) {
- dlog.Error(ctx, "failed to add tree: add parent tree")
+ dlog.Errorf(ctx, "failed to add tree: add parent tree %v", parentID)
return false
}
tree.Parent = ts.trees[parentID]