25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Log messages not only when node joins the cluster, also when leaves it

This commit is contained in:
Badlop 2023-12-06 18:16:43 +01:00
parent 992d84c002
commit 0b6d40c9df
2 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,7 @@ handle_cast(Msg, State) ->
{noreply, State}. {noreply, State}.
handle_info({mnesia_system_event, {mnesia_down, Node}}, State) -> handle_info({mnesia_system_event, {mnesia_down, Node}}, State) ->
?INFO_MSG("Node ~p has left our Mnesia S2S tables", [Node]),
clean_table_from_bad_node(Node), clean_table_from_bad_node(Node),
{noreply, State}; {noreply, State};
handle_info({mnesia_system_event, {mnesia_up, Node}}, State) -> handle_info({mnesia_system_event, {mnesia_up, Node}}, State) ->

View File

@ -112,6 +112,7 @@ handle_cast(Msg, State) ->
{noreply, State}. {noreply, State}.
handle_info({mnesia_system_event, {mnesia_down, Node}}, State) -> handle_info({mnesia_system_event, {mnesia_down, Node}}, State) ->
?INFO_MSG("Node ~p has left our Mnesia SM tables", [Node]),
Sessions = Sessions =
ets:select( ets:select(
session, session,