summaryrefslogtreecommitdiff
path: root/src/rabbit_channel.erl
diff options
context:
space:
mode:
authorMichael Klishin <michael@rabbitmq.com>2014-06-20 02:54:07 +0400
committerMichael Klishin <michael@rabbitmq.com>2014-06-20 02:54:07 +0400
commite4d4c41035ddd07ba62273e4212d7495f23ed405 (patch)
tree4960fac446c255184996c7de5c31fc01088a88fb /src/rabbit_channel.erl
parentd774b6b0ba6aecb7e11b27733e25ae0e01f4ad27 (diff)
downloadrabbitmq-server-e4d4c41035ddd07ba62273e4212d7495f23ed405.tar.gz
More consistent connection formatting per suggestion from Matthias
Diffstat (limited to 'src/rabbit_channel.erl')
-rw-r--r--src/rabbit_channel.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 8955c406..0c012898 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -446,11 +446,11 @@ 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 (vhost '~s',"
- " user '~s', pid: ~p), channel ~p:~n~p~n",
- [ConnName, binary_to_list(VHost),
+ rabbit_log:error("Channel error on connection ~p (~s, vhost: '~s',"
+ " user: '~s'), channel ~p:~n~p~n",
+ [ConnPid, ConnName, binary_to_list(VHost),
binary_to_list(User#user.username),
- ConnPid, Channel, Reason]),
+ Channel, Reason]),
ok = rabbit_writer:send_command(WriterPid, CloseMethod),
{noreply, State1};
{0, _} ->