summaryrefslogtreecommitdiff
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
commitb2516bb2844bbd9f151f10ff7c74b1b9b7145d31 (patch)
tree74d8f105492d7ea7c2a434b68819c266af0135bf
parente4d4c41035ddd07ba62273e4212d7495f23ed405 (diff)
downloadrabbitmq-server-b2516bb2844bbd9f151f10ff7c74b1b9b7145d31.tar.gz
No need to convert to lists here
-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 0261a036..1d96a042 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) ->