|
|
@@ -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").
|
|
|
|