diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-12 20:54:33 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-12 20:54:33 +0000 |
commit | c1fc51259dd4f61a29836858e3c07eed9c9d2ba7 (patch) | |
tree | ae05e44dedc9bcaf2865a9f0ac8c44252f3ff9bf /src/rabbit_control.erl | |
parent | cd012caed4385b393ad612aabc12107419e13e15 (diff) | |
parent | 61bfc7972b99bf2f449579191e800da69d177910 (diff) | |
download | rabbitmq-server-c1fc51259dd4f61a29836858e3c07eed9c9d2ba7.tar.gz |
Merging default into bug23554
Diffstat (limited to 'src/rabbit_control.erl')
-rw-r--r-- | src/rabbit_control.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl index 80483097..15f1e77d 100644 --- a/src/rabbit_control.erl +++ b/src/rabbit_control.erl @@ -342,6 +342,12 @@ format_info_item([{TableEntryKey, TableEntryType, _TableEntryValue} | _] = Value) when is_binary(TableEntryKey) andalso is_atom(TableEntryType) -> io_lib:format("~1000000000000p", [prettify_amqp_table(Value)]); +format_info_item([T | _] = Value) + when is_tuple(T) orelse is_pid(T) orelse is_binary(T) orelse is_atom(T) orelse + is_list(T) -> + "[" ++ + lists:nthtail(2, lists:append( + [", " ++ format_info_item(E) || E <- Value])) ++ "]"; format_info_item(Value) -> io_lib:format("~w", [Value]). |