fix: better listener log
This commit is contained in:
parent
12d7975c36
commit
1752257169
|
@ -188,7 +188,7 @@ start_listener(Type, ListenerName, #{bind := Bind} = Conf) ->
|
||||||
Reason =:= quic_app_missing
|
Reason =:= quic_app_missing
|
||||||
->
|
->
|
||||||
console_print(
|
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]
|
[listener_id(Type, ListenerName), Reason]
|
||||||
),
|
),
|
||||||
ok;
|
ok;
|
||||||
|
@ -204,7 +204,7 @@ start_listener(Type, ListenerName, #{bind := Bind} = Conf) ->
|
||||||
ListenerId = listener_id(Type, ListenerName),
|
ListenerId = listener_id(Type, ListenerName),
|
||||||
BindStr = format_addr(Bind),
|
BindStr = format_addr(Bind),
|
||||||
?ELOG(
|
?ELOG(
|
||||||
"Failed to start listener ~ts on ~ts: ~0p~n",
|
"Failed to start listener ~ts on ~ts: ~0p.~n",
|
||||||
[ListenerId, BindStr, Reason]
|
[ListenerId, BindStr, Reason]
|
||||||
),
|
),
|
||||||
Msg = lists:flatten(
|
Msg = lists:flatten(
|
||||||
|
|
|
@ -91,7 +91,7 @@ start_listeners(Listeners) ->
|
||||||
Minirest = BaseMinirest#{protocol => Protocol},
|
Minirest = BaseMinirest#{protocol => Protocol},
|
||||||
case minirest:start(Name, RanchOptions, Minirest) of
|
case minirest:start(Name, RanchOptions, Minirest) of
|
||||||
{ok, _} ->
|
{ok, _} ->
|
||||||
?ULOG("Start listener ~ts on ~ts successfully.~n", [
|
?ULOG("Listener ~ts on ~ts started.~n", [
|
||||||
Name, emqx_listeners:format_addr(Bind)
|
Name, emqx_listeners:format_addr(Bind)
|
||||||
]),
|
]),
|
||||||
Acc;
|
Acc;
|
||||||
|
|
Loading…
Reference in New Issue