diff --git a/apps/emqx_gateway/src/emqx_gateway_http.erl b/apps/emqx_gateway/src/emqx_gateway_http.erl index 5cddc9305..9d34ade86 100644 --- a/apps/emqx_gateway/src/emqx_gateway_http.erl +++ b/apps/emqx_gateway/src/emqx_gateway_http.erl @@ -579,8 +579,9 @@ with_gateway(GwName0, Fun) -> return_http_error(400, "Invalid bind address"); Class:Reason:Stk -> ?SLOG(error, #{ - msg => "uncatched_error", - reason => {Class, Reason}, + msg => "uncaught_exception", + exception => Class, + reason => Reason, stacktrace => Stk }), reason2resp(Reason)