mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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:
parent
281515cd9f
commit
356ee22cc5
@ -368,7 +368,7 @@ progress_filter(Event, _) ->
|
|||||||
console_template() ->
|
console_template() ->
|
||||||
case (false /= code:is_loaded('Elixir.Logger'))
|
case (false /= code:is_loaded('Elixir.Logger'))
|
||||||
andalso
|
andalso
|
||||||
lists:keymember(default_formatter, 1, 'Elixir.Logger':module_info(exports)) of
|
'Elixir.System':version() >= <<"1.15">> of
|
||||||
true ->
|
true ->
|
||||||
[date, " ", time, " [", level, "] ", message, "\n"];
|
[date, " ", time, " [", level, "] ", message, "\n"];
|
||||||
false ->
|
false ->
|
||||||
|
Loading…
Reference in New Issue
Block a user