Skip to content

Commit

Permalink
Added logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NickolausDS committed Sep 5, 2018
1 parent 06691de commit a0e055b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mp_auth/backends/globus.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def introspect_token(self, bearer_token):
try:
content = resp.json()
except Exception as e:
logger.warn("Error when introspecting a bearer token: {}".format(e))
logger.warning("Error when introspecting a bearer token: {}".format(e))

logger.debug("Introspection response: {}".format(content))

Expand Down Expand Up @@ -111,7 +111,7 @@ def introspect_token(self, bearer_token):
user=user, uid=sub, provider=provider)
AccessToken.objects.create(
user_association=user_association, access_token=bearer_token, scope=scope, exp=exp)
logger.debug("New access token (Globus) {} added to the database".format(bearer_token))
logger.debug("New access token (Globus) {} added to the database".format(user.username))

return user, None

Expand Down

0 comments on commit a0e055b

Please sign in to comment.