diff options
| -rw-r--r-- | src/rabbit_channel.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index ad39001c27..66b4e79a1e 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -405,6 +405,10 @@ handle_exception(Reason, State = #ch{protocol = Protocol, writer_pid = WriterPid, reader_pid = ReaderPid, conn_pid = ConnPid}) -> + {CloseChannel, CloseMethod} = + rabbit_binary_generator:map_exception(Channel, Reason, Protocol), + rabbit_log:error("connection ~p, channel ~p - error:~n~p~n", + [ConnPid, Channel, Reason]), %% something bad's happened: notify_queues may not be 'ok' {_Result, State1} = notify_queues(State), case CloseChannel of |
