chore(emqx_ctl): do not print application

This commit is contained in:
Zaiming Shi 2021-05-21 09:24:39 +02:00
parent f1dcb35f53
commit 48c1d0983d
1 changed files with 1 additions and 7 deletions

View File

@ -116,13 +116,7 @@ mgmt(_) ->
status([]) ->
{InternalStatus, _ProvidedStatus} = init:get_status(),
emqx_ctl:print("Node ~p ~s is ~p~n", [node(), emqx_app:get_release(), InternalStatus]),
case lists:keysearch(?APP, 1, application:which_applications()) of
false ->
emqx_ctl:print("Application ~s is not running~n", [?APP]);
{value, {?APP, _Desc, Vsn}} ->
emqx_ctl:print("Application ~s ~s is running~n", [?APP, Vsn])
end;
emqx_ctl:print("Node ~p ~s is ~p~n", [node(), emqx_app:get_release(), InternalStatus]);
status(_) ->
emqx_ctl:usage("status", "Show broker status").