diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-06-24 16:17:30 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-06-24 16:17:30 +0100 |
commit | fc6737d5450fea892694ae25546cf791150207c2 (patch) | |
tree | 7c1d3a2e1f28bcface90a52289676913a337dede /src/rabbit_channel.erl | |
parent | 8e9a63a39c5eece42fd30ee71ea1b684c2d1af4c (diff) | |
download | rabbitmq-server-fc6737d5450fea892694ae25546cf791150207c2.tar.gz |
Cosmetic: unwrap several lines. Remove some more binary_to_list/1.bug26148
Diffstat (limited to 'src/rabbit_channel.erl')
-rw-r--r-- | src/rabbit_channel.erl | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 0c012898..8d5af9d7 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -433,23 +433,21 @@ send(_Command, #ch{state = closing}) -> send(Command, #ch{writer_pid = WriterPid}) -> ok = rabbit_writer:send_command(WriterPid, Command). -handle_exception(Reason, State = #ch{protocol = Protocol, - channel = Channel, - writer_pid = WriterPid, - reader_pid = ReaderPid, - conn_pid = ConnPid, - conn_name = ConnName, +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 - }) -> + user = User}) -> %% 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("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, ConnName, VHost, User#user.username, Channel, Reason]), ok = rabbit_writer:send_command(WriterPid, CloseMethod), {noreply, State1}; |