25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Change method from 1bf80e8 to determine if Elixir supports default_formatter function

Dialyzer when using Elixir complains about undefined function module_info.
This commit is contained in:
Badlop 2024-02-29 16:36:41 +01:00
parent 281515cd9f
commit 356ee22cc5

View File

@ -368,7 +368,7 @@ progress_filter(Event, _) ->
console_template() ->
case (false /= code:is_loaded('Elixir.Logger'))
andalso
lists:keymember(default_formatter, 1, 'Elixir.Logger':module_info(exports)) of
'Elixir.System':version() >= <<"1.15">> of
true ->
[date, " ", time, " [", level, "] ", message, "\n"];
false ->