Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LeagueOfPoro committed Feb 5, 2023
1 parent 0c6bf5d commit 9b97512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __needSessionRefresh(self) -> bool:
if "access_token" in self.client.cookies.get_dict():
res = jwt.decode(self.client.cookies.get_dict()["access_token"], options={"verify_signature": False})
timeLeft = res['exp'] - int(time())
self.log.debug(f" s until session expires.")
self.log.debug(f"{timeLeft} s until session expires.")
if timeLeft < 600:
return True
return False
Expand Down

0 comments on commit 9b97512

Please sign in to comment.