Skip to content

Commit 81780dc

Browse files
Log a warning when Erlang cookie is overriden using an env variable
as it can be really difficult to troubleshoot such cookie changes
1 parent bd39027 commit 81780dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_dist.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ do_setup(#{nodename := Node,
5656
%% Override the Erlang cookie if one was set in the environment.
5757
case maps:get(erlang_cookie, Origins, default) of
5858
environment ->
59-
?LOG_DEBUG(
60-
"Override Erlang cookie using the one set in the environment",
59+
?LOG_WARNING(
60+
"Overriding Erlang cookie using the value set in the environment",
6161
#{domain => ?RMQLOG_DOMAIN_PRELAUNCH}),
6262
Cookie = maps:get(erlang_cookie, Config),
6363
?assert(is_atom(Cookie)),

0 commit comments

Comments
 (0)