Skip to content

Commit

Permalink
Print EMQ X Version in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-xiaoyu authored and turtleDeng committed Nov 10, 2018
1 parent faeda25 commit 0785841
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/emqx.app.src
@@ -1,6 +1,6 @@
{application,emqx,
[{description,"EMQ X Broker"},
{vsn,"3.0"},
{vsn,"3.0-rc.3"},
{modules,[]},
{registered,[emqx_sup]},
{applications,[kernel,stdlib,jsx,gproc,gen_rpc,esockd,
Expand Down
4 changes: 2 additions & 2 deletions src/emqx_app.erl
Expand Up @@ -47,12 +47,12 @@ stop(_State) ->
%%--------------------------------------------------------------------

print_banner() ->
logger:info("Starting ~s on node ~s", [?APP, node()]).
io:format("Starting ~s on node ~s~n", [?APP, node()]).

print_vsn() ->
{ok, Descr} = application:get_key(description),
{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
Expand Down

0 comments on commit 0785841

Please sign in to comment.