25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Add the module and function names to the error message, when a module

crash.

SVN Revision: 1704
This commit is contained in:
Jean-Sébastien Pédron 2008-12-05 15:08:03 +00:00
parent b82b66fdf0
commit 6305ddca18
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,9 @@
src/mod_vcard_odbc.erl, src/mod_private_odbc.erl, src/jd2ejd.erl: src/mod_vcard_odbc.erl, src/mod_private_odbc.erl, src/jd2ejd.erl:
Update Exmpp XML parser options. Update Exmpp XML parser options.
* src/gen_iq_handler.erl: Add the module and function names to the
error message, when a module crash.
2008-12-03 Jean-Sébastien Pédron <js.pedron@meetic-corp.com> 2008-12-03 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/mod_proxy65/mod_proxy65_stream.erl, * src/mod_proxy65/mod_proxy65_stream.erl,

View File

@ -124,7 +124,8 @@ process_iq(_Host, Module, Function, From, To, IQ_Rec) ->
ejabberd_router:route(To, From, Reply) ejabberd_router:route(To, From, Reply)
catch catch
_Class:Reason -> _Class:Reason ->
?ERROR_MSG("~p~n~p~n", [Reason, erlang:get_stacktrace()]) ?ERROR_MSG("~s:~s/3 crashed: ~p~n~p~n",
[Module, Function, Reason, erlang:get_stacktrace()])
end. end.
%%==================================================================== %%====================================================================