summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_control.erl2
-rw-r--r--src/rabbit_reader.erl2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index cf20520eb0..3258a04b17 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -330,6 +330,8 @@ format_info_item(Items, Key) ->
case Info of
{_, #resource{name = Name}} ->
escape(Name);
+ {_, '$none'} ->
+ "(none)";
_ when Key =:= address; Key =:= peer_address andalso is_tuple(Value) ->
inet_parse:ntoa(Value);
_ when is_pid(Value) ->
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 69dbc008b3..435919b62c 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -703,7 +703,7 @@ i(channels, #v1{}) ->
i(user, #v1{connection = #connection{user = #user{username = Username}}}) ->
Username;
i(user, #v1{connection = #connection{user = none}}) ->
- none;
+ '$none';
i(vhost, #v1{connection = #connection{vhost = VHost}}) ->
VHost;
i(timeout, #v1{connection = #connection{timeout_sec = Timeout}}) ->