summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@rabbitmq.com>2014-06-18 22:20:11 +0400
committerMichael Klishin <michael@rabbitmq.com>2014-06-18 22:20:11 +0400
commit701ff629afe71ba16ea9b2f9de0e5ca2ec8f668a (patch)
treeef8910fcf08a5e9979e859d5ba472357bff6294b
parentf3115189bf0bdc74d02ea99d6e2f0d0e68f4e138 (diff)
downloadrabbitmq-server-git-701ff629afe71ba16ea9b2f9de0e5ca2ec8f668a.tar.gz
Mention connection pid in channel error messages
-rw-r--r--src/rabbit_channel.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index fdae2d7985..6937cbe355 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]),