mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* 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:
parent
f3085d09e4
commit
3e9e51ee30
@ -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
|
||||
|
@ -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
|
||||
|
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user