* src/Makefile.in: Added an option to compile ejabberd with debug

print-out (make ejabberd_debug=true).
* src/ejabberd_c2s.erl: Added a new debug printout: We can now
print the XML packets send by the server.

SVN Revision: 524
This commit is contained in:
Mickaël Rémond 2006-04-01 16:05:20 +00:00
parent f3085d09e4
commit 3e9e51ee30
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2006-04-01 Mickael Remond <mickael.remond@process-one.net>
* src/Makefile.in: Added an option to compile ejabberd with debug
print-out (make ejabberd_debug=true).
* src/ejabberd_c2s.erl: Added a new debug printout: We can now print
the XML packets send by the server.
2006-03-31 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_c2s.erl: Bugfix

View File

@ -17,6 +17,10 @@ ifdef debug
ERLC_FLAGS+=+debug_info
endif
ifdef ejabberd_debug
ERLC_FLAGS+=-Dejabberd_debug
endif
ifeq (@roster_gateway_workaround@, true)
ERLC_FLAGS+=-DROSTER_GATEWAY_WORKAROUND
endif

View File

@ -1191,6 +1191,7 @@ change_shaper(StateData, JID) ->
ejabberd_receiver:change_shaper(StateData#state.receiver, Shaper).
send_text(StateData, Text) ->
?DEBUG("Send XML on stream = ~p", [lists:flatten(Text)]),
(StateData#state.sockmod):send(StateData#state.socket, Text).
send_element(StateData, El) ->