浏览代码

fix(shared): fixed logging

Georgy Sychev 3 年之前
父节点
当前提交
d911a5a9d4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/emqx/src/emqx_session.erl

+ 1 - 1
apps/emqx/src/emqx_session.erl

@@ -818,7 +818,7 @@ redispatch_shared_messages(#session{inflight = Inflight}) ->
             %% Only QoS1 messages get redispatched, because QoS2 messages
             %% must be sent to the same client, once they're in flight
             ({_, #inflight_data{message = #message{qos = ?QOS_2} = Msg}}) ->
-                ?SLOG(warning, "Not redispatching qos2 msg: ~p", [Msg]);
+                ?SLOG(warning, #{msg => qos2_lost_no_redispatch}, #{message => Msg});
             ({_, #inflight_data{message = #message{topic = Topic, qos = ?QOS_1} = Msg}}) ->
                 case emqx_shared_sub:get_group(Msg) of
                     {ok, Group} ->