mod_log_chat: Don't call xml:element_to_string/1
The xml module now exports xml:element_to_binary/1, instead.
This commit is contained in:
parent
89e0a70e44
commit
76c6d17d4b
|
@ -88,10 +88,10 @@ log_packet_receive(_JID, From, To, Packet) ->
|
||||||
log_packet(From, To, Packet = #xmlel{name = <<"message">>, attrs = Attrs}, Host) ->
|
log_packet(From, To, Packet = #xmlel{name = <<"message">>, attrs = Attrs}, Host) ->
|
||||||
case xml:get_attr_s(<<"type">>, Attrs) of
|
case xml:get_attr_s(<<"type">>, Attrs) of
|
||||||
<<"groupchat">> -> %% mod_muc_log already does it
|
<<"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;
|
ok;
|
||||||
<<"error">> -> %% we don't log errors
|
<<"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;
|
ok;
|
||||||
_ ->
|
_ ->
|
||||||
write_packet(From, To, Packet, Host)
|
write_packet(From, To, Packet, Host)
|
||||||
|
|
Loading…
Reference in New Issue