fix(resource): redact query args in exception log

This commit is contained in:
Zaiming (Stone) Shi 2023-09-29 09:20:42 +02:00
parent 02ef854f0f
commit c2d750aa09
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ handle_query_result(Id, Result, HasBeenSent) ->
{ack | nack, function(), counters()}.
handle_query_result_pure(_Id, ?RESOURCE_ERROR_M(exception, Msg), _HasBeenSent) ->
PostFn = fun() ->
?SLOG(error, #{msg => "resource_exception", info => Msg}),
?SLOG(error, #{msg => "resource_exception", info => emqx_utils:redact(Msg)}),
ok
end,
{nack, PostFn, #{}};