Simplify #13121 by @tomyouyou, log it at debug level
This commit is contained in:
parent
9e14040456
commit
9bd0731a5a
|
@ -643,7 +643,7 @@ handle_cast(terminate, State = #ch{cfg = #conf{writer_pid = WriterPid}}) ->
|
||||||
ok = rabbit_writer:flush(WriterPid)
|
ok = rabbit_writer:flush(WriterPid)
|
||||||
catch
|
catch
|
||||||
Class:Reason ->
|
Class:Reason ->
|
||||||
rabbit_log:info("Failed to flushing writer ~tp, Error:~tp", [WriterPid, {Class,Reason}])
|
rabbit_log:debug("Failed to flush pending writes on a terminating connection, reason: ~tp", [Reason])
|
||||||
end,
|
end,
|
||||||
{stop, normal, State};
|
{stop, normal, State};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue