summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2009-09-23 14:50:06 +0100
committerTony Garnock-Jones <tonyg@lshift.net>2009-09-23 14:50:06 +0100
commit14b0e58a217c93eb5334eb9b2694c055bc828877 (patch)
tree426cac8717673a82e60726439f45fca53c4dce1d
parent46bb73b94cfb4bb044096ae75ec5234c46ada561 (diff)
parent9fbaa79e8caf25d74a3ffe15f218fca97e105b46 (diff)
downloadrabbitmq-server-git-14b0e58a217c93eb5334eb9b2694c055bc828877.tar.gz
merged bug21285 into default
-rw-r--r--src/rabbit.erl13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index ef1e004996..27f085c223 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -215,6 +215,10 @@ log_location(Type) ->
_ -> undefined
end.
+app_location() ->
+ {ok, Application} = application:get_application(),
+ filename:absname(code:where_is_file(atom_to_list(Application) ++ ".app")).
+
%---------------------------------------------------------------------------
print_banner() ->
@@ -237,10 +241,11 @@ print_banner() ->
[Product, string:right([$v|Version], ProductLen),
?PROTOCOL_VERSION_MAJOR, ?PROTOCOL_VERSION_MINOR,
?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE]),
- Settings = [{"node", node()},
- {"log", log_location(kernel)},
- {"sasl log", log_location(sasl)},
- {"database dir", rabbit_mnesia:dir()}],
+ Settings = [{"node", node()},
+ {"app descriptor", app_location()},
+ {"log", log_location(kernel)},
+ {"sasl log", log_location(sasl)},
+ {"database dir", rabbit_mnesia:dir()}],
DescrLen = lists:max([length(K) || {K, _V} <- Settings]),
Format = "~-" ++ integer_to_list(DescrLen) ++ "s: ~s~n",
lists:foreach(fun ({K, V}) -> io:format(Format, [K, V]) end, Settings),