summaryrefslogtreecommitdiff
path: root/src/rabbit_nodes.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-12 12:03:54 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-12 12:03:54 +0000
commitf6a8da3fc6455c768a90c99904629079330d6401 (patch)
tree758556e82f3b649c07c719287e322bce899cf4ec /src/rabbit_nodes.erl
parent42bc5b0aa24178987ea1020dea543789eb7f9426 (diff)
downloadrabbitmq-server-f6a8da3fc6455c768a90c99904629079330d6401.tar.gz
Various formatting tweaks.
Diffstat (limited to 'src/rabbit_nodes.erl')
-rw-r--r--src/rabbit_nodes.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_nodes.erl b/src/rabbit_nodes.erl
index 9965c998..3339469d 100644
--- a/src/rabbit_nodes.erl
+++ b/src/rabbit_nodes.erl
@@ -58,8 +58,7 @@ names(Hostname) ->
end.
diagnostics(Nodes) ->
- io:format("~nDiagnosing connectivity..."),
- NodeDiags = [{" done.~n~nDIAGNOSTICS~n===========~n~n"
+ NodeDiags = [{"~nDIAGNOSTICS~n===========~n~n"
"attempted to contact: ~p~n", [Nodes]}] ++
[diagnostics_node(Node) || Node <- Nodes] ++
current_node_details(),
@@ -80,7 +79,7 @@ diagnostics_node(Node) ->
{"- unable to connect to epmd on ~s: ~s",
[Host, rabbit_misc:format_inet_error(EpmdReason)]};
{ok, NamePorts} ->
- [{"- ~s:", [Node]} | diagnostics_node0(Name, Host, NamePorts)]
+ [{"~s:", [Node]} | diagnostics_node0(Name, Host, NamePorts)]
end.
diagnostics_node0(Name, Host, NamePorts) ->
@@ -92,13 +91,13 @@ diagnostics_node0(Name, Host, NamePorts) ->
Host -> SelfName;
_ -> never_matches
end],
- [{" * node seems not to be running at all", []} |
+ [{" * ~s seems not to be running at all", [Name]} |
case Others of
[] -> [{" * no other nodes on ~s", [Host]}];
_ -> [{" * other nodes on ~s: ~p", [Host, Others]}]
end];
[{Name, Port}] ->
- [{" * found ~s: port ~b~n", [Name, Port]} |
+ [{" * found ~s (port ~b)", [Name, Port]} |
case diagnose_connect(Host, Port) of
ok ->
[{" * TCP connection succeeded~n"