Skip to content

Commit df259c4

Browse files
authored
CA-419840 improve logging for VDI.forget (#6839)
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.
2 parents 5c0cfbc + bf8f65c commit df259c4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)