From 1295893864c12b0842bfc7025f2f1d0c75d47635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Fri, 20 Jan 2006 16:51:58 +0000 Subject: [PATCH] * src/ejabberd_receiver.erl: Added new debugging trace: It is now possible to dump the XML stream received from a client (usefull for client debugging). SVN Revision: 487 --- ChangeLog | 6 ++++++ src/ejabberd_receiver.erl | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 204f36349..2e657bcec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-20 Mickael Remond + + * src/ejabberd_receiver.erl: Added new debugging trace: It is now + possible to dump the XML stream received from a client (usefull for + client debugging). + 2006-01-19 Alexey Shchepin * src/aclocal.m4: Updated for zlib support diff --git a/src/ejabberd_receiver.erl b/src/ejabberd_receiver.erl index 466a5c401..6977c8931 100644 --- a/src/ejabberd_receiver.erl +++ b/src/ejabberd_receiver.erl @@ -239,6 +239,7 @@ activate_socket(#state{socket = Socket, process_data(Data, #state{xml_stream_state = XMLStreamState, shaper_state = ShaperState} = State) -> + ?DEBUG("Received XML on stream = ~p", [binary_to_list(Data)]), XMLStreamState1 = xml_stream:parse(XMLStreamState, Data), {NewShaperState, Pause} = shaper:update(ShaperState, size(Data)), if