Skip to content

Commit 2afa0f4

Browse files
Reduce logging verbosity
1 parent 6cdde03 commit 2afa0f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deps/rabbitmq_auth_backend_oauth2/src/uaa_jwt.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ get_jwk(KeyId, OAuthProviderId, AllowUpdateJwks) ->
9898
undefined ->
9999
if
100100
AllowUpdateJwks ->
101-
rabbit_log:debug("OAuth 2 JWT: signing key '~tp' not found. Downloading it... ", [KeyId]),
101+
rabbit_log:debug("Signing key '~tp' not found. Downloading it... ", [KeyId]),
102102
case rabbit_oauth2_config:get_oauth_provider(OAuthProviderId, [jwks_uri]) of
103103
{ok, OAuthProvider} ->
104104
case update_jwks_signing_keys(OAuthProvider) of
@@ -110,15 +110,15 @@ get_jwk(KeyId, OAuthProviderId, AllowUpdateJwks) ->
110110
Err
111111
end;
112112
{error, _} = Error ->
113-
rabbit_log:debug("OAuth 2 JWT: unable to download keys due to ~p", [Error]),
113+
rabbit_log:debug("Unable to download signing keys due to ~p", [Error]),
114114
Error
115115
end;
116116
true ->
117-
rabbit_log:debug("OAuth 2 JWT: signing key '~tp' not found. Downloading is not allowed", [KeyId]),
117+
rabbit_log:debug("Signing key '~tp' not found. Downloading is not allowed", [KeyId]),
118118
{error, key_not_found}
119119
end;
120120
{Type, Value} ->
121-
rabbit_log:debug("OAuth 2 JWT: signing key found: '~tp', '~tp'", [Type, Value]),
121+
rabbit_log:debug("Signing key ~p found", [KeyId]),
122122
case Type of
123123
json -> uaa_jwt_jwk:make_jwk(Value);
124124
pem -> uaa_jwt_jwk:from_pem(Value);

0 commit comments

Comments
 (0)