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 | f8bc55318701eb6bc52ddca4f348d94b06312363 (patch) | |
| tree | d59e71f11f0c5c174b3acd4c97819a4a63928aa9 /src | |
| parent | 7373820046d4ecfe5de444e161ebfce4d20926de (diff) | |
| download | rabbitmq-server-git-f8bc55318701eb6bc52ddca4f348d94b06312363.tar.gz | |
Log connection name instead of pid for channel errors
Diffstat (limited to 'src')
| -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 159442707a..1fabf10acc 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, _} -> |
