mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-10 21:47:01 +02: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:fprof_start(),
|
||||
maybe_add_nameservers(),
|
||||
print_start_debug_info(),
|
||||
start_modules(),
|
||||
ejabberd_cluster:announce(),
|
||||
ejabberd_node_groups:start(),
|
||||
|
@ -237,3 +238,11 @@ delete_pid_file() ->
|
|||
PidFilename ->
|
||||
file:delete(PidFilename)
|
||||
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