Skip to content

Commit

Permalink
Merge pull request #304 from lucafavatella/no-lager-dep
Browse files Browse the repository at this point in the history
Do not depend on lager
  • Loading branch information
Brujo Benavides authored Apr 11, 2017
2 parents baa0888 + bb1753a commit 2cc545a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 25 deletions.
7 changes: 2 additions & 5 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
]}.

Expand Down Expand Up @@ -64,8 +62,7 @@
warn_exported_vars,
warn_missing_spec,
warn_untyped_record,
debug_info,
{parse_transform, lager_transform}
debug_info
]}.

{ct_opts, [
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/sumo_store_mnesia.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion src/sumo_db.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
kernel,
stdlib,
sasl,
lager,
crypto,
worker_pool,
uuid
Expand Down
2 changes: 1 addition & 1 deletion src/sumo_internal.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 0 additions & 17 deletions test/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]}
]}
]}
]}
].

0 comments on commit 2cc545a

Please sign in to comment.