summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-08-06 15:15:12 +0100
committerMatthew Sackman <matthew@lshift.net>2009-08-06 15:15:12 +0100
commit06c0614ee97c15eab3234806a3c764f0a0224a19 (patch)
tree100bd0b44a3d529ed1fc9530cf29d8f5a821bd2d /src/rabbit.erl
parentdaada9523bb1aee739445091583a4e5e3778be4d (diff)
downloadrabbitmq-server-06c0614ee97c15eab3234806a3c764f0a0224a19.tar.gz
An evocative and inspiring bunny.
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 196212ea..088fa436 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -207,8 +207,21 @@ log_location(Type) ->
print_banner() ->
{ok, Product} = application:get_key(id),
{ok, Version} = application:get_key(vsn),
- io:format("~s ~s (AMQP ~p-~p)~n~s~n~s~n~n",
- [Product, Version,
+ ProductLen = string:len(Product),
+ io:format("~n"
+ "+---+ +---+~n"
+ "| | | |~n"
+ "| | | |~n"
+ "| | | |~n"
+ "| +---+ +-------+~n"
+ "| |~n"
+ "| ~s +---+ |~n"
+ "| | | |~n"
+ "| ~s +---+ |~n"
+ "| |~n"
+ "+-------------------+~n"
+ "AMQP ~p-~p~n~s~n~s~n~n",
+ [Product, string:right([$v|Version], ProductLen),
?PROTOCOL_VERSION_MAJOR, ?PROTOCOL_VERSION_MINOR,
?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE]),
Settings = [{"node", node()},