diff options
author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-09-23 14:50:06 +0100 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-09-23 14:50:06 +0100 |
commit | cfc812cd8039174003af8d33e248ba8a6d089f23 (patch) | |
tree | 426cac8717673a82e60726439f45fca53c4dce1d | |
parent | af9bb2a7bc33b126aa38792138d5dd922978e0aa (diff) | |
parent | 73956170c3aaba621371e968d66d55323bca9756 (diff) | |
download | rabbitmq-server-cfc812cd8039174003af8d33e248ba8a6d089f23.tar.gz |
merged bug21285 into default
-rw-r--r-- | src/rabbit.erl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index ef1e0049..27f085c2 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), |