]> granicus.if.org Git - ejabberd/commitdiff
Log startup time
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 18 Mar 2017 07:24:42 +0000 (10:24 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 18 Mar 2017 07:24:42 +0000 (10:24 +0300)
src/ejabberd_app.erl

index f4d10e5a583c1fd0a8463f513e897f8f0146bab3..a2fc8adcb00f0488433ff8b86b6a44d0b7561960 100644 (file)
@@ -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