Format leader healthcheck result log and function exports

This commit is contained in:
Ayanda Dube 2025-02-21 18:22:17 +00:00
parent 5f5e9922bd
commit ebffd7d8a4
1 changed files with 3 additions and 2 deletions

View File

@ -82,7 +82,8 @@
file_handle_other_reservation/0,
file_handle_release_reservation/0]).
-export([leader_health_check/2, run_leader_health_check/4]).
-export([leader_health_check/2,
run_leader_health_check/4]).
-ifdef(TEST).
-export([filter_promotable/2,
@ -2221,4 +2222,4 @@ check_process_limit_safety(QCount, ProcessLimitThreshold) ->
maybe_log_leader_health_check_result([]) -> ok;
maybe_log_leader_health_check_result(Result) ->
Qs = lists:map(fun(R) -> catch maps:get(<<"readable_name">>, R) end, Result),
rabbit_log:warning("Leader health check result (unhealthy leaders detected): ~ts", [Qs]).
rabbit_log:warning("Leader health check result (unhealthy leaders detected): ~tp", [Qs]).