mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-29 14:37:44 +02:00
Log startup time
This commit is contained in:
parent
e56a76299c
commit
72da5bd062
@ -40,6 +40,7 @@
|
|||||||
%%%
|
%%%
|
||||||
|
|
||||||
start(normal, _Args) ->
|
start(normal, _Args) ->
|
||||||
|
{T1, _} = statistics(wall_clock),
|
||||||
ejabberd_logger:start(),
|
ejabberd_logger:start(),
|
||||||
write_pid_file(),
|
write_pid_file(),
|
||||||
start_apps(),
|
start_apps(),
|
||||||
@ -54,8 +55,9 @@ start(normal, _Args) ->
|
|||||||
case ejabberd_sup:start_link() of
|
case ejabberd_sup:start_link() of
|
||||||
{ok, SupPid} ->
|
{ok, SupPid} ->
|
||||||
register_elixir_config_hooks(),
|
register_elixir_config_hooks(),
|
||||||
?INFO_MSG("ejabberd ~s is started in the node ~p",
|
{T2, _} = statistics(wall_clock),
|
||||||
[?VERSION, node()]),
|
?INFO_MSG("ejabberd ~s is started in the node ~p in ~.2fs",
|
||||||
|
[?VERSION, node(), (T2-T1)/1000]),
|
||||||
{ok, SupPid};
|
{ok, SupPid};
|
||||||
Err ->
|
Err ->
|
||||||
Err
|
Err
|
||||||
|
Loading…
Reference in New Issue
Block a user