Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit e7b5823ce46e2fb0718706a52f6d456100186698 1 parent 7e424c1
Sean Richard Lynch seanlynch authored dustin committed

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 src/ns_cluster.erl
4 src/ns_cluster.erl
@@ -46,7 +46,7 @@ bringup() ->
46 46 %%
47 47
48 48 running({join, RemoteNode, NewCookie}, State) ->
49   - ns_log:log(?MODULE, 0002, "Node ~p is joining cluster.", [RemoteNode]),
  49 + ns_log:log(?MODULE, 0002, "Node ~p is joining cluster via node ~p.", [node(), RemoteNode]),
50 50 ns_config:set(otp, [{cookie, NewCookie}]),
51 51 ns_config:set(nodes_wanted, [node(), RemoteNode], {0, 0, 0}),
52 52 ns_config:clear([directory, otp, nodes_wanted]),
@@ -109,7 +109,7 @@ leaving(leave, LeaveData) ->
109 109 %% Internal functions
110 110 %%
111 111
112   -log_joining() ->
  112 +log_joined() ->
113 113 ns_log:log(?MODULE, ?NODE_JOINED, "Node ~s joined cluster",
114 114 [node()]).
115 115

0 comments on commit e7b5823

Please sign in to comment.
Something went wrong with that request. Please try again.