From 48c1d0983d17cb901647f84c6e3885978e95ffc5 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Fri, 21 May 2021 09:24:39 +0200 Subject: [PATCH] chore(emqx_ctl): do not print application --- apps/emqx_management/src/emqx_mgmt_cli.erl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/emqx_management/src/emqx_mgmt_cli.erl b/apps/emqx_management/src/emqx_mgmt_cli.erl index 252ac3857..77fe96182 100644 --- a/apps/emqx_management/src/emqx_mgmt_cli.erl +++ b/apps/emqx_management/src/emqx_mgmt_cli.erl @@ -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").