Print EMQ X Version in the console
This commit is contained in:
parent
faeda253e1
commit
078584172e
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue