From: Evgeniy Khramtsov Date: Sat, 18 Mar 2017 07:24:42 +0000 (+0300) Subject: Log startup time X-Git-Tag: 17.03~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72da5bd062245f3e4411462bf81f2e91bf4af0bf;p=ejabberd Log startup time --- diff --git a/src/ejabberd_app.erl b/src/ejabberd_app.erl index f4d10e5a5..a2fc8adcb 100644 --- a/src/ejabberd_app.erl +++ b/src/ejabberd_app.erl @@ -40,6 +40,7 @@ %%% start(normal, _Args) -> + {T1, _} = statistics(wall_clock), ejabberd_logger:start(), write_pid_file(), start_apps(), @@ -54,8 +55,9 @@ start(normal, _Args) -> case ejabberd_sup:start_link() of {ok, SupPid} -> register_elixir_config_hooks(), - ?INFO_MSG("ejabberd ~s is started in the node ~p", - [?VERSION, node()]), + {T2, _} = statistics(wall_clock), + ?INFO_MSG("ejabberd ~s is started in the node ~p in ~.2fs", + [?VERSION, node(), (T2-T1)/1000]), {ok, SupPid}; Err -> Err