fix(resource): redact query args in exception log
This commit is contained in:
parent
02ef854f0f
commit
c2d750aa09
|
@ -856,7 +856,7 @@ handle_query_result(Id, Result, HasBeenSent) ->
|
||||||
{ack | nack, function(), counters()}.
|
{ack | nack, function(), counters()}.
|
||||||
handle_query_result_pure(_Id, ?RESOURCE_ERROR_M(exception, Msg), _HasBeenSent) ->
|
handle_query_result_pure(_Id, ?RESOURCE_ERROR_M(exception, Msg), _HasBeenSent) ->
|
||||||
PostFn = fun() ->
|
PostFn = fun() ->
|
||||||
?SLOG(error, #{msg => "resource_exception", info => Msg}),
|
?SLOG(error, #{msg => "resource_exception", info => emqx_utils:redact(Msg)}),
|
||||||
ok
|
ok
|
||||||
end,
|
end,
|
||||||
{nack, PostFn, #{}};
|
{nack, PostFn, #{}};
|
||||||
|
|
Loading…
Reference in New Issue