chore(gw): log SEND_data

This commit is contained in:
JianBo He 2022-03-08 17:21:32 +08:00
parent 691588ed23
commit 8ac0152af0
1 changed files with 1 additions and 0 deletions

View File

@ -753,6 +753,7 @@ serialize_and_inc_stats_fun(#state{
send(IoData, State = #state{socket = Socket,
chann_mod = ChannMod,
channel = Channel}) ->
?SLOG(debug, #{msg => "SEND_data", data => IoData}),
Ctx = ChannMod:info(ctx, Channel),
Oct = iolist_size(IoData),
ok = emqx_gateway_ctx:metrics_inc(Ctx, 'bytes.sent', Oct),