diff --git a/rebar.config b/rebar.config index 6aa877e..a38cf0a 100644 --- a/rebar.config +++ b/rebar.config @@ -19,15 +19,13 @@ warn_exported_vars, warn_missing_spec, warn_untyped_record, - debug_info, - {parse_transform, lager_transform} + debug_info ]}. %% == Dependencies == {deps, [ {worker_pool, "2.0.1"}, - {lager, "3.2.1"}, {uuid, "1.5.2-rc1", {pkg, uuid_erl}} ]}. @@ -64,8 +62,7 @@ warn_exported_vars, warn_missing_spec, warn_untyped_record, - debug_info, - {parse_transform, lager_transform} + debug_info ]}. {ct_opts, [ diff --git a/src/adapters/sumo_store_mnesia.erl b/src/adapters/sumo_store_mnesia.erl index 4fa435a..5301a51 100644 --- a/src/adapters/sumo_store_mnesia.erl +++ b/src/adapters/sumo_store_mnesia.erl @@ -426,7 +426,7 @@ wakeup_fun(_, _, FieldValue, _) -> %% @private maybe_log(Fun, Args, #{verbose := true}) -> - lager:debug(log_format(Fun), Args); + error_logger:info_msg(log_format(Fun), Args); maybe_log(_, _, _) -> ok. diff --git a/src/sumo_db.app.src b/src/sumo_db.app.src index c853d80..ce51e44 100644 --- a/src/sumo_db.app.src +++ b/src/sumo_db.app.src @@ -7,7 +7,6 @@ kernel, stdlib, sasl, - lager, crypto, worker_pool, uuid diff --git a/src/sumo_internal.erl b/src/sumo_internal.erl index 9d3638c..f098c74 100644 --- a/src/sumo_internal.erl +++ b/src/sumo_internal.erl @@ -190,7 +190,7 @@ check_operator(Op) -> exit({unknown_operator, Op}). -spec report_overrun(term()) -> ok. report_overrun(Report) -> - lager:error("~p", [Report]). + error_logger:error_msg("~p", [Report]). %%%============================================================================= %%% Internal functions diff --git a/test/test.config b/test/test.config index f079373..f4f5335 100644 --- a/test/test.config +++ b/test/test.config @@ -23,22 +23,5 @@ {sasl, [ {sasl_error_logger, false} - ]}, - - {lager, [ - {colored, true}, - {async_threshold, 200}, - {async_threshold_window, 5}, - {error_logger_hwm, 500}, - {handlers, [ - {lager_console_backend, [ - debug, - {lager_default_formatter, [ - color, time, " [", severity, "]", - " [", {module, ""}, ":", {function, ""}, ":", {line, ""}, "] ", - message, "\e[0m\n" - ]} - ]} - ]} ]} ].