This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 5754bcf057552c9f286613f030075a99053791ce
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Thu May 29 16:02:18 2025 -0400

    Improve cluster startup logging
    
    Previously, we logged these events as notice but let's lower them to info. 
On
    startup or node upgrades they'll always be logged and they are not that
    interesting just add noise.
    
    Also, the `cluster_unstable/1` callback in `rexi_server_mon` log was 
duplicated
    so remove one of them.
---
 src/rexi/src/rexi_server_mon.erl | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/rexi/src/rexi_server_mon.erl b/src/rexi/src/rexi_server_mon.erl
index 1677bd310..870b79612 100644
--- a/src/rexi/src/rexi_server_mon.erl
+++ b/src/rexi/src/rexi_server_mon.erl
@@ -57,7 +57,6 @@ aggregate_queue_len(ChildMod) ->
 % Mem3 cluster callbacks
 
 cluster_unstable(Server) ->
-    couch_log:notice("~s : cluster unstable", [?MODULE]),
     gen_server:cast(Server, cluster_unstable),
     Server.
 
@@ -75,7 +74,7 @@ init(ChildMod) ->
         ?CLUSTER_STABILITY_PERIOD_SEC
     ),
     start_servers(ChildMod),
-    couch_log:notice("~s : started servers", [ChildMod]),
+    couch_log:info("~s : started servers", [ChildMod]),
     {ok, ChildMod}.
 
 handle_call(status, _From, ChildMod) ->
@@ -93,13 +92,13 @@ handle_call(Msg, _From, St) ->
 % can be started, but do not immediately stop nodes, defer that till cluster
 % stabilized.
 handle_cast(cluster_unstable, ChildMod) ->
-    couch_log:notice("~s : cluster unstable", [ChildMod]),
+    couch_log:info("~s : cluster unstable", [ChildMod]),
     start_servers(ChildMod),
     {noreply, ChildMod};
 % When cluster is stable, start any servers for new nodes and stop servers for
 % the ones that disconnected.
 handle_cast(cluster_stable, ChildMod) ->
-    couch_log:notice("~s : cluster stable", [ChildMod]),
+    couch_log:info("~s : cluster stable", [ChildMod]),
     start_servers(ChildMod),
     stop_servers(ChildMod),
     {noreply, ChildMod};

Reply via email to