Skip to content

Commit 78617ab

Browse files
committed
Keep all shutdown print statements together
1 parent b529c77 commit 78617ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_control_main.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ do_action(Command, Node, Args, Opts, Inform, Timeout) ->
271271
end.
272272

273273
shutdown_node_and_wait_pid_to_stop(Node, Pid, Inform) ->
274+
Inform("Shutting down RabbitMQ node ~p running at PID ~s", [Node, Pid]),
274275
Res = call(Node, {rabbit, stop_and_halt, []}),
275276
case Res of
276277
ok ->
@@ -284,7 +285,6 @@ shutdown_node_and_wait_pid_to_stop(Node, Pid, Inform) ->
284285
action(shutdown, Node, [], _Opts, Inform) ->
285286
case rpc:call(Node, os, getpid, []) of
286287
Pid when is_list(Pid) ->
287-
Inform("Shutting down RabbitMQ node ~p running at PID ~s", [Node, Pid]),
288288
shutdown_node_and_wait_pid_to_stop(Node, Pid, Inform);
289289
Error -> Error
290290
end;

0 commit comments

Comments
 (0)