Print EMQ X Version in the console

This commit is contained in:
terry-xiaoyu 2018-11-10 12:10:51 +08:00 committed by turtleDeng
parent faeda253e1
commit 078584172e
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{application,emqx, {application,emqx,
[{description,"EMQ X Broker"}, [{description,"EMQ X Broker"},
{vsn,"3.0"}, {vsn,"3.0-rc.3"},
{modules,[]}, {modules,[]},
{registered,[emqx_sup]}, {registered,[emqx_sup]},
{applications,[kernel,stdlib,jsx,gproc,gen_rpc,esockd, {applications,[kernel,stdlib,jsx,gproc,gen_rpc,esockd,

View File

@ -47,12 +47,12 @@ stop(_State) ->
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
print_banner() -> print_banner() ->
logger:info("Starting ~s on node ~s", [?APP, node()]). io:format("Starting ~s on node ~s~n", [?APP, node()]).
print_vsn() -> print_vsn() ->
{ok, Descr} = application:get_key(description), {ok, Descr} = application:get_key(description),
{ok, Vsn} = application:get_key(vsn), {ok, Vsn} = application:get_key(vsn),
logger:info("~s ~s is running now!", [Descr, Vsn]). io:format("~s ~s is running now!~n", [Descr, Vsn]).
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
%% Autocluster %% Autocluster