Skip to content

Commit 58a1420

Browse files
committed
Add more detailed debug message
Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
1 parent 4ab22bc commit 58a1420

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ocaml/xapi/xapi_clustering.ml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,16 @@ let compute_corosync_max_host_failures ~__context =
427427
corosync_ha_max_hosts
428428

429429
module Watcher = struct
430+
let routine_updates = "routine updates"
431+
430432
let on_corosync_update ~__context ~cluster updates =
431-
debug
432-
"%s: Received %d updates from corosync_notifyd, run diagnostics to get \
433-
new state"
434-
__FUNCTION__ (List.length updates) ;
433+
if updates = [routine_updates] then
434+
debug "%s: Perform routine updates" __FUNCTION__
435+
else
436+
debug
437+
"%s: Received %d updates from corosync_notifyd, run diagnostics to get \
438+
new state"
439+
__FUNCTION__ (List.length updates) ;
435440
let m =
436441
Cluster_client.LocalClient.diagnostics (rpc ~__context)
437442
"update quorum api fields with diagnostics"
@@ -570,7 +575,7 @@ module Watcher = struct
570575
(* CA-395789: We send a query to xapi-clusterd to fetch the latest state
571576
anyway in case there is a race and the previous update did not give the
572577
most up-to-date information *)
573-
find_cluster_and_update ["routine updates"]
578+
find_cluster_and_update [routine_updates]
574579
| Error (InternalError message) | Error (Unix_error message) ->
575580
warn "%s: Cannot query cluster host updates with error %s"
576581
__FUNCTION__ message

0 commit comments

Comments
 (0)