mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-31 15:21:38 +01:00
Add start time information in ejabberd log
One way to print that information is to configure in ejabberd.cfg {loglevel, {4, [{ejabberd_app, debug}]}}.
This commit is contained in:
parent
e3d875d09f
commit
159529d539
@ -66,6 +66,7 @@ start(normal, _Args) ->
|
|||||||
%ejabberd_debug:eprof_start(),
|
%ejabberd_debug:eprof_start(),
|
||||||
%ejabberd_debug:fprof_start(),
|
%ejabberd_debug:fprof_start(),
|
||||||
maybe_add_nameservers(),
|
maybe_add_nameservers(),
|
||||||
|
print_start_debug_info(),
|
||||||
start_modules(),
|
start_modules(),
|
||||||
ejabberd_cluster:announce(),
|
ejabberd_cluster:announce(),
|
||||||
ejabberd_node_groups:start(),
|
ejabberd_node_groups:start(),
|
||||||
@ -237,3 +238,11 @@ delete_pid_file() ->
|
|||||||
PidFilename ->
|
PidFilename ->
|
||||||
file:delete(PidFilename)
|
file:delete(PidFilename)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
print_start_debug_info() ->
|
||||||
|
?DEBUG("Inet DB RC:~n~p", [inet_db:get_rc()]),
|
||||||
|
?DEBUG("Mnesia database:~n~p", [mnesia:system_info(all)]),
|
||||||
|
?DEBUG("Mnesia tables:~n~p",
|
||||||
|
[ [{Table, mnesia:table_info(Table, all)} ||
|
||||||
|
Table <- lists:sort(mnesia:system_info(tables))] ]),
|
||||||
|
ok.
|
||||||
|
Loading…
Reference in New Issue
Block a user