Merge pull request #7739 from DDDHuang/better_dashboard_log

fix: better listener log
This commit is contained in:
zhongwencool 2022-04-24 14:08:27 +08:00 committed by GitHub
commit a27caff5af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 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

@ -89,7 +89,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;

View File

@ -188,7 +188,7 @@ start_listener(
{ok, {ListenerId, ListenOn, Pid}};
{error, Reason} ->
?ELOG(
"Failed to start gateway ~ts:~ts:~ts on ~ts: ~0p~n",
"Gateway failed to start ~ts:~ts:~ts on ~ts: ~0p~n",
[GwName, Type, LisName, ListenOnStr, Reason]
),
emqx_gateway_utils:supervisor_ret({error, Reason})