Don't log the auth_backends fallback message #13464

Doing so for every HTTP API request is excessive
even at debug level.

(cherry picked from commit 830374cd339ac41668b274a13ea2bb8635fc1a32)
This commit is contained in:
Michael Klishin 2025-03-06 21:56:08 -05:00
parent 81f780a2e9
commit a8a8249388
No known key found for this signature in database
GPG Key ID: 44BF2725475205B2
1 changed files with 4 additions and 4 deletions

View File

@ -365,8 +365,8 @@ is_basic_auth_disabled(#auth_settings{basic_auth_enabled = Enabled}) ->
get_auth_backends() ->
case application:get_env(rabbitmq_web_dispatch, auth_backends) of
{ok, Backends} -> {ok, Backends};
undefined -> rabbit_log:debug("rabbitmq_web_dispatch.auth_backends not configured,
falling back to rabbit.auth_backends"),
application:get_env(rabbit, auth_backends)
{ok, Backends} ->
{ok, Backends};
undefined ->
application:get_env(rabbit, auth_backends)
end.