Skip to content

Commit e1795a4

Browse files
Merge pull request #2257 from rabbitmq/export-product_info-in-status
rabbit: Export product info in `status()`
2 parents f6fcf32 + bfcd6b8 commit e1795a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/rabbit.erl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
-export([product_info/0,
3434
product_name/0,
3535
product_version/0,
36+
base_product_name/0,
37+
base_product_version/0,
3638
motd_file/0,
3739
motd/0]).
3840
-export([log_locations/0, config_files/0]). %% for testing and mgmt-agent
@@ -672,12 +674,16 @@ maybe_print_boot_progress(true, IterationsLeft) ->
672674
{memory, any()}].
673675

674676
status() ->
675-
Version = product_version(),
677+
Version = base_product_version(),
678+
#{name := ProductName,
679+
version := ProductVersion} = product_info(),
676680
S1 = [{pid, list_to_integer(os:getpid())},
677681
%% The timeout value used is twice that of gen_server:call/2.
678682
{running_applications, rabbit_misc:which_applications()},
679683
{os, os:type()},
680684
{rabbitmq_version, Version},
685+
{product_name, ProductName},
686+
{product_version, ProductVersion},
681687
{erlang_version, erlang:system_info(system_version)},
682688
{memory, rabbit_vm:memory()},
683689
{alarms, alarms()},

0 commit comments

Comments
 (0)