]> granicus.if.org Git - ejabberd/commitdiff
Log this cached exception as DEBUG in ejabberd log file
authorBadlop <badlop@process-one.net>
Wed, 4 May 2011 14:32:52 +0000 (16:32 +0200)
committerBadlop <badlop@process-one.net>
Wed, 4 May 2011 21:04:07 +0000 (23:04 +0200)
src/ejabberd_c2s.erl

index 5b432199ff80e0890e346b1e20ed099fa611415b..b08685c0f4f0bf957b758eff86c846d0fe40ce24 100644 (file)
@@ -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;