Skip to content

Commit 14b0e58

Browse files
committed
merged bug21285 into default
2 parents 46bb73b + 9fbaa79 commit 14b0e58

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/rabbit.erl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ log_location(Type) ->
215215
_ -> undefined
216216
end.
217217

218+
app_location() ->
219+
{ok, Application} = application:get_application(),
220+
filename:absname(code:where_is_file(atom_to_list(Application) ++ ".app")).
221+
218222
%---------------------------------------------------------------------------
219223

220224
print_banner() ->
@@ -237,10 +241,11 @@ print_banner() ->
237241
[Product, string:right([$v|Version], ProductLen),
238242
?PROTOCOL_VERSION_MAJOR, ?PROTOCOL_VERSION_MINOR,
239243
?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE]),
240-
Settings = [{"node", node()},
241-
{"log", log_location(kernel)},
242-
{"sasl log", log_location(sasl)},
243-
{"database dir", rabbit_mnesia:dir()}],
244+
Settings = [{"node", node()},
245+
{"app descriptor", app_location()},
246+
{"log", log_location(kernel)},
247+
{"sasl log", log_location(sasl)},
248+
{"database dir", rabbit_mnesia:dir()}],
244249
DescrLen = lists:max([length(K) || {K, _V} <- Settings]),
245250
Format = "~-" ++ integer_to_list(DescrLen) ++ "s: ~s~n",
246251
lists:foreach(fun ({K, V}) -> io:format(Format, [K, V]) end, Settings),

0 commit comments

Comments
 (0)