diff --git a/src/emqx_app.erl b/src/emqx_app.erl index 68444cefc..8501243a8 100644 --- a/src/emqx_app.erl +++ b/src/emqx_app.erl @@ -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),