From f839b1c6ffba972af8cde1bae4bb84cac368c12e Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 4 May 2011 16:32:52 +0200 Subject: [PATCH] Log this cached exception as DEBUG in ejabberd log file --- src/ejabberd_c2s.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 5b432199f..b08685c0f 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -894,7 +894,8 @@ wait_for_bind({xmlstreamelement, El}, StateData) -> Err = exmpp_server_binding:error(El, 'bad-request'), send_element(StateData, Err), fsm_next_state(wait_for_bind, StateData); - throw:_Exception -> + throw:Exception -> + ?DEBUG("When processing:~n ~p~nThis exception was catched:~n ~p", [El, Exception]), fsm_next_state(wait_for_bind, StateData) end;