summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <michael@rabbitmq.com>2014-06-22 14:44:04 +0400
committerMichael Klishin <michael@rabbitmq.com>2014-06-22 14:44:04 +0400
commita5a5239d2f8437c54b4a3c3435ea950f3b800902 (patch)
tree74d8f105492d7ea7c2a434b68819c266af0135bf /src
parent6d3ff26670a8283c9fd733c4c49f7daab5dce387 (diff)
downloadrabbitmq-server-git-a5a5239d2f8437c54b4a3c3435ea950f3b800902.tar.gz
No need to convert to lists here
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_reader.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 0261a036d1..1d96a042bb 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -567,8 +567,7 @@ wait_for_channel_termination(N, TimerRef,
" user: '~s', state: ~p), channel ~p:"
"error while terminating:~n~p~n",
[self(), ConnName,
- binary_to_list(VHost),
- binary_to_list(User#user.username),
+ VHost, User#user.username,
CS, Channel, Reason]),
wait_for_channel_termination(
N-1, TimerRef, State1)
@@ -600,7 +599,7 @@ log_hard_error(State = #v1{connection_state = CS,
"Error on AMQP connection ~p (~s, vhost: '~s',"
" user: '~s', state: ~p), channel ~p:~n~p~n",
[self(), ConnName,
- binary_to_list(VHost), binary_to_list(User#user.username),
+ VHost, User#user.username,
CS, Channel, Reason]).
handle_exception(State = #v1{connection_state = closed}, Channel, Reason) ->