diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-03-12 12:03:54 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-03-12 12:03:54 +0000 |
| commit | 9e97c091e4bafddda68f40753cc1f9225e129572 (patch) | |
| tree | 758556e82f3b649c07c719287e322bce899cf4ec | |
| parent | 82c33971e06d8787950ad323965d0a15f79688fb (diff) | |
| download | rabbitmq-server-git-9e97c091e4bafddda68f40753cc1f9225e129572.tar.gz | |
Various formatting tweaks.
| -rw-r--r-- | src/rabbit_nodes.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_nodes.erl b/src/rabbit_nodes.erl index 9965c998f1..3339469df1 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" |
