Permalink
Browse files

Bug 975: Log joining the cluster and send an alert

Change-Id: I30fa9e535e5db6281e9b0dabefa18d5ec279803e
Reviewed-on: https://review.northscale.com:8443/1296
Reviewed-by: Dustin Sallings <dustin@spy.net>
Tested-by: Dustin Sallings <dustin@spy.net>
  • Loading branch information...
1 parent 7e424c1 commit e7b5823ce46e2fb0718706a52f6d456100186698 @seanlynch seanlynch committed with dustin Apr 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ns_cluster.erl
View
@@ -46,7 +46,7 @@ bringup() ->
%%
running({join, RemoteNode, NewCookie}, State) ->
- ns_log:log(?MODULE, 0002, "Node ~p is joining cluster.", [RemoteNode]),
+ ns_log:log(?MODULE, 0002, "Node ~p is joining cluster via node ~p.", [node(), RemoteNode]),
ns_config:set(otp, [{cookie, NewCookie}]),
ns_config:set(nodes_wanted, [node(), RemoteNode], {0, 0, 0}),
ns_config:clear([directory, otp, nodes_wanted]),
@@ -109,7 +109,7 @@ leaving(leave, LeaveData) ->
%% Internal functions
%%
-log_joining() ->
+log_joined() ->
ns_log:log(?MODULE, ?NODE_JOINED, "Node ~s joined cluster",
[node()]).

0 comments on commit e7b5823

Please sign in to comment.