chore: remove useless stacktrace from catch.

This commit is contained in:
zhongwencool 2022-03-31 15:58:11 +08:00
parent 1a302b1914
commit fe6af95f88
5 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_auth_jwt, {application, emqx_auth_jwt,
[{description, "EMQ X Authentication with JWT"}, [{description, "EMQ X Authentication with JWT"},
{vsn, "4.3.1"}, % strict semver, bump manually! {vsn, "4.3.2"}, % strict semver, bump manually!
{modules, []}, {modules, []},
{registered, [emqx_auth_jwt_sup]}, {registered, [emqx_auth_jwt_sup]},
{applications, [kernel,stdlib,jose]}, {applications, [kernel,stdlib,jose]},

View File

@ -1,13 +1,13 @@
%% -*-: erlang -*- %% -*-: erlang -*-
{VSN, {VSN,
[ [
{"4.3.0", [ {"4.3.[0-1]", [
{load_module, emqx_auth_jwt_svr, brutal_purge, soft_purge, []} {load_module, emqx_auth_jwt_svr, brutal_purge, soft_purge, []}
]}, ]},
{<<".*">>, []} {<<".*">>, []}
], ],
[ [
{"4.3.0", [ {"4.3.[0-1]", [
{load_module, emqx_auth_jwt_svr, brutal_purge, soft_purge, []} {load_module, emqx_auth_jwt_svr, brutal_purge, soft_purge, []}
]}, ]},
{<<".*">>, []} {<<".*">>, []}

View File

@ -91,7 +91,7 @@ do_init_jwks(Options) ->
[K, V, Reason]), [K, V, Reason]),
undefined; undefined;
J -> J J -> J
catch T:R:_ -> catch T:R ->
?LOG(warning, "Build ~p JWK ~p failed: {~p, ~p}~n", ?LOG(warning, "Build ~p JWK ~p failed: {~p, ~p}~n",
[K, V, T, R]), [K, V, T, R]),
undefined undefined

View File

@ -175,7 +175,7 @@ resovle_hookspec(HookSpecs) when is_list(HookSpecs) ->
case maps:get(name, HookSpec, undefined) of case maps:get(name, HookSpec, undefined) of
undefined -> Acc; undefined -> Acc;
Name0 -> Name0 ->
Name = try binary_to_existing_atom(Name0, utf8) catch T:R:_ -> {T,R} end, Name = try binary_to_existing_atom(Name0, utf8) catch T:R -> {T,R} end,
case lists:member(Name, AvailableHooks) of case lists:member(Name, AvailableHooks) of
true -> true ->
case lists:member(Name, MessageHooks) of case lists:member(Name, MessageHooks) of

View File

@ -159,7 +159,7 @@ update_overall_limiter(Zone, Capacity, Interval) ->
try try
esockd_limiter:update({Zone, overall_messages_routing}, Capacity, Interval), esockd_limiter:update({Zone, overall_messages_routing}, Capacity, Interval),
true true
catch _:_:_ -> catch _:_ ->
false false
end. end.
@ -167,6 +167,6 @@ delete_overall_limiter(Zone) ->
try try
esockd_limiter:delete({Zone, overall_messages_routing}), esockd_limiter:delete({Zone, overall_messages_routing}),
true true
catch _:_:_ -> catch _:_ ->
false false
end. end.