summaryrefslogtreecommitdiff
path: root/src/rabbit_channel.erl
diff options
context:
space:
mode:
authorMichael Klishin <michael@rabbitmq.com>2014-06-19 06:57:50 +0400
committerMichael Klishin <michael@rabbitmq.com>2014-06-19 06:57:50 +0400
commitf8806ea63cef8b5f2396fdf7316367d9d73f8e98 (patch)
tree07d4f9722a8a32af12be77a37302d9dfa6b7cfe0 /src/rabbit_channel.erl
parentddcc00cc2e3e9c6a89d223e946faa20de9cc33cd (diff)
downloadrabbitmq-server-f8806ea63cef8b5f2396fdf7316367d9d73f8e98.tar.gz
Move user and vhost closer to connection info
Diffstat (limited to 'src/rabbit_channel.erl')
-rw-r--r--src/rabbit_channel.erl8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 6937cbe3..db733434 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -448,11 +448,9 @@ 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("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]),
+ rabbit_log:error("Channel error on connection ~s (vhost '~s', user '~s', pid: ~p), channel ~p:~n~p~n",
+ [ConnName, binary_to_list(VHost), binary_to_list(Username),
+ ConnPid, Channel, Reason]),
ok = rabbit_writer:send_command(WriterPid, CloseMethod),
{noreply, State1};
{0, _} ->