aboutsummaryrefslogtreecommitdiff
path: root/src/gen_mod.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen_mod.erl')
-rw-r--r--src/gen_mod.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen_mod.erl b/src/gen_mod.erl
index ed51d7605..28afc12ae 100644
--- a/src/gen_mod.erl
+++ b/src/gen_mod.erl
@@ -86,8 +86,8 @@ start_module2(Host, Module, Opts) ->
catch Class:Reason ->
del_module_mnesia(Host, Module),
ets:delete(ejabberd_modules, {Module, Host}),
- ErrorText = io_lib:format("Problem starting the module ~p for host ~p ~n options: ~p~n ~p: ~p",
- [Module, Host, Opts, Class, Reason]),
+ ErrorText = io_lib:format("Problem starting the module ~p for host ~p ~n options: ~p~n ~p: ~p~n stacktarce: ~p",
+ [Module, Host, Opts, Class, Reason, erlang:get_stacktrace()]),
?CRITICAL_MSG(ErrorText, []),
case is_app_running(ejabberd) of
true ->