diff options
author | Michael Klishin <michael@rabbitmq.com> | 2014-06-17 06:07:24 +0400 |
---|---|---|
committer | Michael Klishin <michael@rabbitmq.com> | 2014-06-17 06:07:24 +0400 |
commit | 243130acc943601ec3ab8bf79d7bfb41fa6a96d0 (patch) | |
tree | d59e71f11f0c5c174b3acd4c97819a4a63928aa9 /src/rabbit_channel.erl | |
parent | 7e2a03c67acdb627a5e64bef16e9df88e1d21a64 (diff) | |
download | rabbitmq-server-243130acc943601ec3ab8bf79d7bfb41fa6a96d0.tar.gz |
Log connection name instead of pid for channel errors
Diffstat (limited to 'src/rabbit_channel.erl')
-rw-r--r-- | src/rabbit_channel.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 15944270..1fabf10a 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -437,13 +437,14 @@ handle_exception(Reason, State = #ch{protocol = Protocol, channel = Channel, writer_pid = WriterPid, reader_pid = ReaderPid, - conn_pid = ConnPid}) -> + conn_name = ConnName + }) -> %% something bad's happened: notify_queues may not be 'ok' {_Result, State1} = notify_queues(State), case rabbit_binary_generator:map_exception(Channel, Reason, Protocol) of {Channel, CloseMethod} -> - rabbit_log:error("connection ~p, channel ~p - soft error:~n~p~n", - [ConnPid, Channel, Reason]), + rabbit_log:error("connection ~s, channel ~p - soft error:~n~p~n", + [ConnName, Channel, Reason]), ok = rabbit_writer:send_command(WriterPid, CloseMethod), {noreply, State1}; {0, _} -> |