From d911a5a9d4b446986ea96fd83ce9d675633d80f7 Mon Sep 17 00:00:00 2001 From: Georgy Sychev Date: Tue, 24 May 2022 15:57:38 +0400 Subject: [PATCH] fix(shared): fixed logging --- apps/emqx/src/emqx_session.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx/src/emqx_session.erl b/apps/emqx/src/emqx_session.erl index e32ebc610..e37680ddf 100644 --- a/apps/emqx/src/emqx_session.erl +++ b/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} ->