Commit df87d79b by Renzo Lucioni

Fix access token retrieval message

The metadata refresh command should log the short code of the partner for which an access token is being retrieved instead of always logging the value of the partner_code argument.
parent fdd5bf23
......@@ -85,7 +85,7 @@ class Command(BaseCommand):
token_type = 'JWT'
for partner in partners:
logger.info('Retrieving access token for partner [{}]'.format(partner_code))
logger.info('Retrieving access token for partner [{}]'.format(partner.short_code))
try:
access_token, __ = EdxRestApiClient.get_oauth_access_token(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment