mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Fix call to lager_util:is_loggable/3
This commit is contained in:
parent
9e6efaf9bc
commit
035c63fd2a
@ -38,7 +38,7 @@ init(_Opts) ->
|
|||||||
handle_event({log, LagerMsg}, State) ->
|
handle_event({log, LagerMsg}, State) ->
|
||||||
#{mode := Mode, truncate := Truncate, level := MinLevel, utc_log := UTCLog} = 'Elixir.Logger.Config':'__data__'(),
|
#{mode := Mode, truncate := Truncate, level := MinLevel, utc_log := UTCLog} = 'Elixir.Logger.Config':'__data__'(),
|
||||||
MsgLevel = severity_to_level(lager_msg:severity(LagerMsg)),
|
MsgLevel = severity_to_level(lager_msg:severity(LagerMsg)),
|
||||||
case {lager_util:is_loggable(LagerMsg, debug, ?MODULE), 'Elixir.Logger':compare_levels(MsgLevel, MinLevel)} of
|
case {lager_util:is_loggable(LagerMsg, lager_util:level_to_num(debug), ?MODULE), 'Elixir.Logger':compare_levels(MsgLevel, MinLevel)} of
|
||||||
{_, lt}->
|
{_, lt}->
|
||||||
{ok, State};
|
{ok, State};
|
||||||
{true, _} ->
|
{true, _} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user