@@ -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
220224print_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