refactor(cli): Print node name version and app name version

So not to confuse application version with node release version
This commit is contained in:
Zaiming Shi 2021-03-15 18:51:10 +01:00 committed by Zaiming (Stone) Shi
parent 96bd561790
commit a1f78b5083
1 changed files with 3 additions and 3 deletions

View File

@ -115,12 +115,12 @@ mgmt(_) ->
status([]) ->
{InternalStatus, _ProvidedStatus} = init:get_status(),
emqx_ctl:print("Node ~p is ~p~n", [node(), InternalStatus]),
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("~s is not running~n", [?APP]);
emqx_ctl:print("Application ~s is not running~n", [?APP]);
{value, {?APP, _Desc, Vsn}} ->
emqx_ctl:print("~s ~s is running~n", [?APP, Vsn])
emqx_ctl:print("Application ~s ~s is running~n", [?APP, Vsn])
end;
status(_) ->
emqx_ctl:usage("status", "Show broker status").