From 76c6d17d4b60279fcb35aa7f41f583b339558d60 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Thu, 25 Jun 2015 21:01:21 +0200 Subject: [PATCH] mod_log_chat: Don't call xml:element_to_string/1 The xml module now exports xml:element_to_binary/1, instead. --- mod_log_chat/src/mod_log_chat.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_log_chat/src/mod_log_chat.erl b/mod_log_chat/src/mod_log_chat.erl index 79389ce..83fb4f5 100644 --- a/mod_log_chat/src/mod_log_chat.erl +++ b/mod_log_chat/src/mod_log_chat.erl @@ -88,10 +88,10 @@ log_packet_receive(_JID, From, To, Packet) -> log_packet(From, To, Packet = #xmlel{name = <<"message">>, attrs = Attrs}, Host) -> case xml:get_attr_s(<<"type">>, Attrs) of <<"groupchat">> -> %% mod_muc_log already does it - ?DEBUG("dropping groupchat: ~s", [xml:element_to_string(Packet)]), + ?DEBUG("dropping groupchat: ~s", [xml:element_to_binary(Packet)]), ok; <<"error">> -> %% we don't log errors - ?DEBUG("dropping error: ~s", [xml:element_to_string(Packet)]), + ?DEBUG("dropping error: ~s", [xml:element_to_binary(Packet)]), ok; _ -> write_packet(From, To, Packet, Host)