summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@lazu.co.uk>2017-03-31 12:21:11 +0100
committerGerhard Lazu <gerhard@lazu.co.uk>2017-03-31 12:21:41 +0100
commit78617ab28b0f53b7912245614650fe9fa1e32d1c (patch)
treed2895c50019410f382242c9b4e2505cd5f08bad5 /src
parentb529c77862bd2ddcd8c29a2540819f935f3ea65d (diff)
downloadrabbitmq-server-git-78617ab28b0f53b7912245614650fe9fa1e32d1c.tar.gz
Keep all shutdown print statements together
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_control_main.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index 15d941b7b2..acc2667a9e 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -271,6 +271,7 @@ do_action(Command, Node, Args, Opts, Inform, Timeout) ->
end.
shutdown_node_and_wait_pid_to_stop(Node, Pid, Inform) ->
+ Inform("Shutting down RabbitMQ node ~p running at PID ~s", [Node, Pid]),
Res = call(Node, {rabbit, stop_and_halt, []}),
case Res of
ok ->
@@ -284,7 +285,6 @@ shutdown_node_and_wait_pid_to_stop(Node, Pid, Inform) ->
action(shutdown, Node, [], _Opts, Inform) ->
case rpc:call(Node, os, getpid, []) of
Pid when is_list(Pid) ->
- Inform("Shutting down RabbitMQ node ~p running at PID ~s", [Node, Pid]),
shutdown_node_and_wait_pid_to_stop(Node, Pid, Inform);
Error -> Error
end;