Skip to content

Commit 8aadbd7

Browse files
authored
message_forwarding: Log which operation is added/removed from blocked_ops (#6624)
Otherwise the log is not very helpful.
2 parents 9efbe9a + 3897cdb commit 8aadbd7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ocaml/xapi/message_forwarding.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,14 +3111,16 @@ functor
31113111
Xapi_vm_lifecycle.update_allowed_operations ~__context ~self
31123112

31133113
let add_to_blocked_operations ~__context ~self ~key ~value =
3114-
info "VM.add_to_blocked_operations: self = '%s'"
3115-
(vm_uuid ~__context self) ;
3114+
info "VM.add_to_blocked_operations: self = '%s', key = '%s'"
3115+
(vm_uuid ~__context self)
3116+
(API.vm_operations_to_string key) ;
31163117
Local.VM.add_to_blocked_operations ~__context ~self ~key ~value ;
31173118
Xapi_vm_lifecycle.update_allowed_operations ~__context ~self
31183119

31193120
let remove_from_blocked_operations ~__context ~self ~key =
3120-
info "VM.remove_from_blocked_operations: self = '%s'"
3121-
(vm_uuid ~__context self) ;
3121+
info "VM.remove_from_blocked_operations: self = '%s', key = '%s'"
3122+
(vm_uuid ~__context self)
3123+
(API.vm_operations_to_string key) ;
31223124
Local.VM.remove_from_blocked_operations ~__context ~self ~key ;
31233125
Xapi_vm_lifecycle.update_allowed_operations ~__context ~self
31243126

0 commit comments

Comments
 (0)