From 760de7becf4a8c1a71995e225aa0ca9506da89b2 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 1 Jun 2023 08:26:53 +0200 Subject: [PATCH] chore: imporve logging message --- apps/emqx_conf/src/emqx_conf_app.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/emqx_conf/src/emqx_conf_app.erl b/apps/emqx_conf/src/emqx_conf_app.erl index c1a3b5df5..c09faec89 100644 --- a/apps/emqx_conf/src/emqx_conf_app.erl +++ b/apps/emqx_conf/src/emqx_conf_app.erl @@ -111,7 +111,8 @@ sync_cluster_conf() -> [] -> %% The first core nodes is self. ?SLOG(debug, #{ - msg => "skip_sync_cluster_conf", reason => "Running single node" + msg => "skip_sync_cluster_conf", + reason => "This is a single node, or the first node in the cluster" }), {ok, ?DEFAULT_INIT_TXN_ID}; Nodes -> @@ -202,7 +203,9 @@ sync_cluster_conf3(Ready) -> ), ?SLOG(warning, #{ msg => "all_available_nodes_running_newer_version", - hint => "Booting this node without syncing cluster config from peer core nodes", + hint => + "Booting this node without syncing cluster config from peer core nodes " + "because other nodes are running a newer version", peer_nodes => NodesAndVersions }), {ok, ?DEFAULT_INIT_TXN_ID};