diff options
| author | Paul Jones <paulj@lshift.net> | 2009-09-24 08:20:43 +0100 |
|---|---|---|
| committer | Paul Jones <paulj@lshift.net> | 2009-09-24 08:20:43 +0100 |
| commit | 4e5be6475404c8a5a799b8edd9faba971b3be245 (patch) | |
| tree | e86e85431904e00a800abe81971d231c23e835ca /src/rabbit.erl | |
| parent | 1db8635ccb9e12af63e23459f6d3188c751b2448 (diff) | |
| parent | 978685e6e075a102776fb3a1cd799ea2a48024cc (diff) | |
| download | rabbitmq-server-git-4e5be6475404c8a5a799b8edd9faba971b3be245.tar.gz | |
Merged default
Diffstat (limited to 'src/rabbit.erl')
| -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 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), |
