Skip to content

Commit

Permalink
Merge pull request #153 from twolaw/fix-msg-refresh-token
Browse files Browse the repository at this point in the history
Fix "token refreshed" log message
  • Loading branch information
moogar0880 authored Jun 29, 2021
2 parents da59116 + c66922a commit 320f9f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trakt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ def _refresh_token(s):
OAUTH_EXPIRES_AT = data.get("created_at") + data.get("expires_in")
OAUTH_TOKEN_VALID = True
s.logger.info(
"OAuth token successfully refreshed, valid until",
datetime.fromtimestamp(OAUTH_EXPIRES_AT, tz=timezone.utc)
"OAuth token successfully refreshed, valid until {}".format(
datetime.fromtimestamp(OAUTH_EXPIRES_AT, tz=timezone.utc)
)
)
_store(
CLIENT_ID=CLIENT_ID, CLIENT_SECRET=CLIENT_SECRET,
Expand Down

0 comments on commit 320f9f1

Please sign in to comment.