Make missing log more descriptive

This commit is contained in:
Joseph Schorr 2017-09-12 16:19:55 -04:00
parent 6600b380ca
commit 54a4476cbb

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.