Skip to content

Commit 9143a58

Browse files
committed
CA-419840 improve logging for VDI.forget
When a CDR is removed from an ISO SR the corresponding VDI is deleted. This is not obvious in the logs because some logs refer to the VDI by reference and others by UUID. Tie this together. Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
1 parent 6641f75 commit 9143a58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml/xapi/xapi_vdi.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ let pool_introduce = internal_db_introduce
736736
let db_introduce = internal_db_introduce
737737

738738
let db_forget ~__context ~vdi =
739-
debug "db_forget uuid=%s" (Db.VDI.get_uuid ~__context ~self:vdi) ;
739+
debug "db_forget uuid=%s ref=%s"
740+
(Db.VDI.get_uuid ~__context ~self:vdi)
741+
(Ref.string_of vdi) ;
740742
Db.VDI.destroy ~__context ~self:vdi
741743

742744
let introduce ~__context ~uuid ~name_label ~name_description ~sR ~_type

0 commit comments

Comments
 (0)