@@ -74,17 +74,17 @@ drain() ->
7474
7575-spec do_drain () -> ok .
7676do_drain () ->
77- _ = rabbit_log :alert (" This node is being put into maintenance (drain) mode" ),
77+ _ = rabbit_log :warning (" This node is being put into maintenance (drain) mode" ),
7878 mark_as_being_drained (),
7979 _ = rabbit_log :info (" Marked this node as undergoing maintenance" ),
8080 suspend_all_client_listeners (),
81- _ = rabbit_log :alert (" Suspended all listeners and will no longer accept client connections" ),
81+ _ = rabbit_log :warning (" Suspended all listeners and will no longer accept client connections" ),
8282 {ok , NConnections } = close_all_client_connections (),
8383 % % allow plugins to react e.g. by closing their protocol connections
8484 rabbit_event :notify (maintenance_connections_closed , #{
8585 reason => <<" node is being put into maintenance" >>
8686 }),
87- _ = rabbit_log :alert (" Closed ~b local client connections" , [NConnections ]),
87+ _ = rabbit_log :warning (" Closed ~b local client connections" , [NConnections ]),
8888
8989 TransferCandidates = primary_replica_transfer_candidate_nodes (),
9090 % % Note: only QQ leadership is transferred because it is a reasonably quick thing to do a lot of queues
@@ -96,7 +96,7 @@ do_drain() ->
9696 rabbit_event :notify (maintenance_draining , #{
9797 reason => <<" node is being put into maintenance" >>
9898 }),
99- _ = rabbit_log :alert (" Node is ready to be shut down for maintenance or upgrade" ),
99+ _ = rabbit_log :info (" Node is ready to be shut down for maintenance or upgrade" ),
100100
101101 ok .
102102
@@ -111,11 +111,11 @@ revive() ->
111111
112112-spec do_revive () -> ok .
113113do_revive () ->
114- _ = rabbit_log :alert (" This node is being revived from maintenance (drain) mode" ),
114+ _ = rabbit_log :info (" This node is being revived from maintenance (drain) mode" ),
115115 revive_local_quorum_queue_replicas (),
116- _ = rabbit_log :alert (" Resumed all listeners and will accept client connections again" ),
116+ _ = rabbit_log :info (" Resumed all listeners and will accept client connections again" ),
117117 resume_all_client_listeners (),
118- _ = rabbit_log :alert (" Resumed all listeners and will accept client connections again" ),
118+ _ = rabbit_log :info (" Resumed all listeners and will accept client connections again" ),
119119 unmark_as_being_drained (),
120120 _ = rabbit_log :info (" Marked this node as back from maintenance and ready to serve clients" ),
121121
0 commit comments