Simplify #13121 by @tomyouyou, log it at debug level

(cherry picked from commit 9bd0731a5a)
This commit is contained in:
Michael Klishin 2025-06-25 14:28:21 +04:00 committed by Mergify
parent 5a6da14339
commit f3fa4cc6ab
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ handle_cast(terminate, State = #ch{cfg = #conf{writer_pid = WriterPid}}) ->
ok = rabbit_writer:flush(WriterPid)
catch
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,
{stop, normal, State};