mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Log messages not only when node joins the cluster, also when leaves it
This commit is contained in:
parent
992d84c002
commit
0b6d40c9df
@ -237,6 +237,7 @@ handle_cast(Msg, State) ->
|
||||
{noreply, 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),
|
||||
{noreply, State};
|
||||
handle_info({mnesia_system_event, {mnesia_up, Node}}, State) ->
|
||||
|
@ -112,6 +112,7 @@ handle_cast(Msg, State) ->
|
||||
{noreply, State}.
|
||||
|
||||
handle_info({mnesia_system_event, {mnesia_down, Node}}, State) ->
|
||||
?INFO_MSG("Node ~p has left our Mnesia SM tables", [Node]),
|
||||
Sessions =
|
||||
ets:select(
|
||||
session,
|
||||
|
Loading…
Reference in New Issue
Block a user