Revert "Make rabbit_log:log/2 return 'ok' unconditionally"
This reverts commit 01c4ca2aa9.
This commit is contained in:
parent
01c4ca2aa9
commit
fd86959429
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue