Merge pull request #2865 from coreos-inc/missing-key-log

Make missing log more descriptive
This commit is contained in:
josephschorr 2017-09-13 11:25:39 -04:00 committed by GitHub
commit 9324cbd9a7

View file

@ -52,7 +52,7 @@ def decode_bearer_token(bearer_token, instance_keys, config):
# Find the matching public key.
public_key = instance_keys.get_service_key_public_key(kid)
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')
# Load the JWT returned.