From 035c63fd2a0d3e51d1baf73d0d9f8c710c4e663a Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Wed, 9 Mar 2016 21:03:06 +0100 Subject: [PATCH] Fix call to lager_util:is_loggable/3 --- src/elixir_logger_backend.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elixir_logger_backend.erl b/src/elixir_logger_backend.erl index 8c634934c..583d46a5c 100644 --- a/src/elixir_logger_backend.erl +++ b/src/elixir_logger_backend.erl @@ -38,7 +38,7 @@ init(_Opts) -> handle_event({log, LagerMsg}, State) -> #{mode := Mode, truncate := Truncate, level := MinLevel, utc_log := UTCLog} = 'Elixir.Logger.Config':'__data__'(), 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}-> {ok, State}; {true, _} -> -- 2.40.0