Revert "Make rabbit_log:log/2 return 'ok' unconditionally"

This reverts commit 01c4ca2aa9.
This commit is contained in:
Michael Klishin 2021-03-04 13:13:00 +03:00
parent 01c4ca2aa9
commit fd86959429
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
1 changed files with 2 additions and 4 deletions

View File

@ -74,8 +74,7 @@ log(Category, Level, Fmt, Args) when is_list(Args) ->
default -> ?LAGER_SINK;
_ -> make_internal_sink_name(Category)
end,
lager:log(Sink, Level, self(), Fmt, Args),
ok.
lager:log(Sink, Level, self(), Fmt, Args).
%% logger(3) handler.
log(#{level := Level,
@ -101,8 +100,7 @@ log(#{level := Level,
lager:log(?LAGER_SINK, Level, Pid, "~ts", [String]);
{Format, Args} when is_list(Format) ->
lager:log(?LAGER_SINK, Level, Pid, Format, Args)
end,
ok.
end.
make_internal_sink_name(channel) -> rabbit_log_channel_lager_event;
make_internal_sink_name(connection) -> rabbit_log_connection_lager_event;