Merge pull request #2865 from coreos-inc/missing-key-log
Make missing log more descriptive
This commit is contained in:
commit
9324cbd9a7
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def decode_bearer_token(bearer_token, instance_keys, config):
|
||||||
# Find the matching public key.
|
# Find the matching public key.
|
||||||
public_key = instance_keys.get_service_key_public_key(kid)
|
public_key = instance_keys.get_service_key_public_key(kid)
|
||||||
if public_key is None:
|
if public_key is None:
|
||||||
logger.error('Could not find requested service key %s', kid)
|
logger.error('Could not find requested service key %s with encoded JWT: %s', kid, bearer_token)
|
||||||
raise InvalidBearerTokenException('Unknown service key')
|
raise InvalidBearerTokenException('Unknown service key')
|
||||||
|
|
||||||
# Load the JWT returned.
|
# Load the JWT returned.
|
||||||
|
|
Reference in a new issue