summaryrefslogtreecommitdiff
path: root/src/mod_client_state.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-23 15:17:20 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-23 15:17:20 +0300
commit5770946f03ba669ea867b787fbd546333a8a3814 (patch)
tree73a03717ac5d4c31e12b92c1aba3b407f3c5329c /src/mod_client_state.erl
parentFix unicode formatting in ACME module (diff)
Correctly handle unicode in log messages
Diffstat (limited to 'src/mod_client_state.erl')
-rw-r--r--src/mod_client_state.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mod_client_state.erl b/src/mod_client_state.erl
index 855e4a5d..35eb6b73 100644
--- a/src/mod_client_state.erl
+++ b/src/mod_client_state.erl
@@ -227,7 +227,7 @@ filter_presence({#presence{meta = #{csi_resend := true}}, _} = Acc) ->
filter_presence({#presence{to = To, type = Type} = Pres,
#{csi_state := inactive} = C2SState})
when Type == available; Type == unavailable ->
- ?DEBUG("Got availability presence stanza for ~s", [jid:encode(To)]),
+ ?DEBUG("Got availability presence stanza for ~ts", [jid:encode(To)]),
enqueue_stanza(presence, Pres, C2SState);
filter_presence(Acc) ->
Acc.
@@ -246,7 +246,7 @@ filter_chat_states({#message{from = From, to = To} = Msg,
%% conversations across clients.
Acc;
_ ->
- ?DEBUG("Got standalone chat state notification for ~s",
+ ?DEBUG("Got standalone chat state notification for ~ts",
[jid:encode(To)]),
enqueue_stanza(chatstate, Msg, C2SState)
end;
@@ -265,7 +265,7 @@ filter_pep({#message{to = To} = Msg,
undefined ->
Acc;
Node ->
- ?DEBUG("Got PEP notification for ~s", [jid:encode(To)]),
+ ?DEBUG("Got PEP notification for ~ts", [jid:encode(To)]),
enqueue_stanza({pep, Node}, Msg, C2SState)
end;
filter_pep(Acc) ->
@@ -277,7 +277,7 @@ filter_other({Stanza, #{jid := JID} = C2SState} = Acc) when ?is_stanza(Stanza) -
#{csi_resend := true} ->
Acc;
_ ->
- ?DEBUG("Won't add stanza for ~s to CSI queue", [jid:encode(JID)]),
+ ?DEBUG("Won't add stanza for ~ts to CSI queue", [jid:encode(JID)]),
From = case xmpp:get_from(Stanza) of
undefined -> JID;
F -> F
@@ -328,7 +328,7 @@ dequeue_sender(#jid{luser = U, lserver = S} = Sender,
%% This may happen when the module is (re)loaded in runtime
init_csi_state(C2SState);
Q ->
- ?DEBUG("Flushing packets of ~s@~s from CSI queue of ~s",
+ ?DEBUG("Flushing packets of ~ts@~ts from CSI queue of ~ts",
[U, S, jid:encode(JID)]),
{Elems, Q1} = queue_take(Sender, Q),
C2SState1 = flush_stanzas(C2SState, Elems),
@@ -337,7 +337,7 @@ dequeue_sender(#jid{luser = U, lserver = S} = Sender,
-spec flush_queue(c2s_state()) -> c2s_state().
flush_queue(#{csi_queue := Q, jid := JID} = C2SState) ->
- ?DEBUG("Flushing CSI queue of ~s", [jid:encode(JID)]),
+ ?DEBUG("Flushing CSI queue of ~ts", [jid:encode(JID)]),
C2SState1 = flush_stanzas(C2SState, queue_to_list(Q)),
C2SState1#{csi_queue => queue_new()}.