diff options
author | Michael Klishin <michael@rabbitmq.com> | 2014-06-18 22:20:11 +0400 |
---|---|---|
committer | Michael Klishin <michael@rabbitmq.com> | 2014-06-18 22:20:11 +0400 |
commit | fda548c1e4004797534f90b4bbe4f1b36424d451 (patch) | |
tree | ef8910fcf08a5e9979e859d5ba472357bff6294b | |
parent | ffab3538c83f658b70398999385e84ad2259cb33 (diff) | |
download | rabbitmq-server-fda548c1e4004797534f90b4bbe4f1b36424d451.tar.gz |
Mention connection pid in channel error messages
-rw-r--r-- | src/rabbit_channel.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index fdae2d79..6937cbe3 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -437,6 +437,7 @@ handle_exception(Reason, State = #ch{protocol = Protocol, channel = Channel, writer_pid = WriterPid, reader_pid = ReaderPid, + conn_pid = ConnPid, conn_name = ConnName, virtual_host = VHost, user = #user{ @@ -447,8 +448,8 @@ handle_exception(Reason, State = #ch{protocol = Protocol, {_Result, State1} = notify_queues(State), case rabbit_binary_generator:map_exception(Channel, Reason, Protocol) of {Channel, CloseMethod} -> - rabbit_log:error("connection ~s, channel ~p - soft error (vhost '~s', user '~s'):~n~p~n", - [ConnName, Channel, + rabbit_log:error("Channel error on connection ~s (~p), channel ~p (vhost '~s', user '~s'):~n~p~n", + [ConnName, ConnPid, Channel, binary_to_list(VHost), binary_to_list(Username), Reason]), |