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:
parent
992d84c002
commit
0b6d40c9df
@ -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…
Reference in New Issue
Block a user