chore(emqx_app): do not print 'starting' log when test
This commit is contained in:
parent
b97b36d077
commit
7128bc9e6e
|
@ -83,19 +83,25 @@ print_otp_version_warning() -> ok.
|
|||
print_otp_version_warning() ->
|
||||
io:format("WARNING: Running on Erlang/OTP version ~p. Recommended: 23~n",
|
||||
[?OTP_RELEASE]).
|
||||
-endif.
|
||||
-endif. % OTP_RELEASE
|
||||
|
||||
-ifndef(TEST).
|
||||
|
||||
print_banner() ->
|
||||
io:format("Starting ~s on node ~s~n", [?APP, node()]).
|
||||
|
||||
-ifndef(TEST).
|
||||
print_vsn() ->
|
||||
io:format("~s ~s is running now!~n", [get_description(), get_release()]).
|
||||
-else.
|
||||
|
||||
-else. % TEST
|
||||
|
||||
print_vsn() ->
|
||||
ok.
|
||||
-endif.
|
||||
|
||||
print_banner() ->
|
||||
ok.
|
||||
|
||||
-endif. % TEST
|
||||
|
||||
get_description() ->
|
||||
{ok, Descr0} = application:get_key(?APP, description),
|
||||
|
|
Loading…
Reference in New Issue