fix: better listener log

This commit is contained in:
DDDHuang 2022-04-24 09:55:35 +08:00
parent 12d7975c36
commit 1752257169
2 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ start_listener(Type, ListenerName, #{bind := Bind} = Conf) ->
Reason =:= quic_app_missing
->
console_print(
"Listener ~ts is NOT started due to: ~p~n.",
"Listener ~ts is NOT started due to: ~p.~n",
[listener_id(Type, ListenerName), Reason]
),
ok;
@ -204,7 +204,7 @@ start_listener(Type, ListenerName, #{bind := Bind} = Conf) ->
ListenerId = listener_id(Type, ListenerName),
BindStr = format_addr(Bind),
?ELOG(
"Failed to start listener ~ts on ~ts: ~0p~n",
"Failed to start listener ~ts on ~ts: ~0p.~n",
[ListenerId, BindStr, Reason]
),
Msg = lists:flatten(

View File

@ -91,7 +91,7 @@ start_listeners(Listeners) ->
Minirest = BaseMinirest#{protocol => Protocol},
case minirest:start(Name, RanchOptions, Minirest) of
{ok, _} ->
?ULOG("Start listener ~ts on ~ts successfully.~n", [
?ULOG("Listener ~ts on ~ts started.~n", [
Name, emqx_listeners:format_addr(Bind)
]),
Acc;