mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Log messages not only when node joins the cluster, also when leaves it
This commit is contained in:
parent
992d84c002
commit
0b6d40c9df
2 changed files with 2 additions and 0 deletions
|
@ -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) ->
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue