chore: downgrade log severity level of 'not_ready' nodes to info

This commit is contained in:
Zaiming (Stone) Shi 2023-06-21 09:45:45 +02:00
parent 045ed340dd
commit 5f47649d4d
1 changed files with 9 additions and 1 deletions

View File

@ -134,7 +134,7 @@ sync_cluster_conf2(Nodes) ->
msg => "ignored_nodes_when_sync_cluster_conf" msg => "ignored_nodes_when_sync_cluster_conf"
}, },
?SLOG(warning, Warning); ?SLOG(warning, Warning);
true -> true when Failed =/= [] ->
%% There are core nodes running but no one was able to reply. %% There are core nodes running but no one was able to reply.
?SLOG(error, #{ ?SLOG(error, #{
msg => "failed_to_sync_cluster_conf", msg => "failed_to_sync_cluster_conf",
@ -142,6 +142,14 @@ sync_cluster_conf2(Nodes) ->
failed => Failed, failed => Failed,
not_ready => NotReady not_ready => NotReady
}); });
true ->
%% There are core nodes booting up
?SLOG(info, #{
msg => "peer_not_ready_for_config_sync",
reason => "The 'not_ready' peer node(s) are loading configs",
nodes => Nodes,
not_ready => NotReady
});
false -> false ->
ok ok
end, end,