mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
ejabberd_app: At server start, log Erlang and Elixir versions
This commit is contained in:
parent
7f8519c0af
commit
3669ac8aed
@ -64,6 +64,9 @@ start(normal, _Args) ->
|
|||||||
?INFO_MSG("ejabberd ~ts is started in the node ~p in ~.2fs",
|
?INFO_MSG("ejabberd ~ts is started in the node ~p in ~.2fs",
|
||||||
[ejabberd_option:version(),
|
[ejabberd_option:version(),
|
||||||
node(), (T2-T1)/1000]),
|
node(), (T2-T1)/1000]),
|
||||||
|
maybe_print_elixir_version(),
|
||||||
|
?INFO_MSG("~ts",
|
||||||
|
[erlang:system_info(system_version)]),
|
||||||
{ok, SupPid};
|
{ok, SupPid};
|
||||||
Err ->
|
Err ->
|
||||||
?CRITICAL_MSG("Failed to start ejabberd application: ~p", [Err]),
|
?CRITICAL_MSG("Failed to start ejabberd application: ~p", [Err]),
|
||||||
@ -205,9 +208,13 @@ maybe_start_exsync() ->
|
|||||||
"true" -> rpc:call(node(), 'Elixir.ExSync.Application', start, []);
|
"true" -> rpc:call(node(), 'Elixir.ExSync.Application', start, []);
|
||||||
_ -> ok
|
_ -> ok
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
maybe_print_elixir_version() ->
|
||||||
|
?INFO_MSG("Elixir ~ts", [maps:get(build, 'Elixir.System':build_info())]).
|
||||||
-else.
|
-else.
|
||||||
setup_if_elixir_conf_used() -> ok.
|
setup_if_elixir_conf_used() -> ok.
|
||||||
register_elixir_config_hooks() -> ok.
|
register_elixir_config_hooks() -> ok.
|
||||||
start_elixir_application() -> ok.
|
start_elixir_application() -> ok.
|
||||||
maybe_start_exsync() -> ok.
|
maybe_start_exsync() -> ok.
|
||||||
|
maybe_print_elixir_version() -> ok.
|
||||||
-endif.
|
-endif.
|
||||||
|
Loading…
Reference in New Issue
Block a user