diff --git a/apps/emqx_gateway/src/exproto/emqx_exproto_impl.erl b/apps/emqx_gateway/src/exproto/emqx_exproto_impl.erl index 7311ed310..9965956f7 100644 --- a/apps/emqx_gateway/src/exproto/emqx_exproto_impl.erl +++ b/apps/emqx_gateway/src/exproto/emqx_exproto_impl.erl @@ -167,16 +167,17 @@ start_grpc_server(GwName, Options = #{bind := ListenOn}) -> )} ] end, + ListenOnStr = emqx_listeners:format_addr(ListenOn), case grpc:start_server(GwName, ListenOn, Services, SvrOptions) of {ok, _SvrPid} -> console_print( - "Start ~ts gRPC server on ~p successfully.~n", - [GwName, ListenOn] + "Start ~ts gRPC server on ~s successfully.~n", + [GwName, ListenOnStr] ); {error, Reason} -> ?ELOG( - "Failed to start ~ts gRPC server on ~p, reason: ~0p", - [GwName, ListenOn, Reason] + "Failed to start ~ts gRPC server on ~s, reason: ~0p", + [GwName, ListenOnStr, Reason] ), throw( {badconf, #{