From 87dccc1cf4a564304eafe83d45d5f34f95efdb8e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 25 Jan 2022 13:38:40 +0000 Subject: [PATCH] Don't print the access/refresh tokens --- handler/revolut.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler/revolut.py b/handler/revolut.py index 0e33643..7614823 100644 --- a/handler/revolut.py +++ b/handler/revolut.py @@ -83,9 +83,9 @@ class Revolut(object): settings.Revolut.RefreshToken = parsed["refresh_token"] settings.Revolut.SetupToken = "0" settings.write() - self.log.info("Refreshed refresh token: {refresh_token}", refresh_token=settings.Revolut.RefreshToken) + self.log.info("Refreshed refresh token") self.token = parsed["access_token"] - self.log.info("Refreshed access token: {access_token}", access_token=self.token) + self.log.info("Refreshed access token") except KeyError: self.log.error(f"Token authorization didn't contain refresh or access token: {parsed}", parsed=parsed) return False @@ -119,7 +119,7 @@ class Revolut(object): if r.status_code == 200: if "access_token" in parsed.keys(): self.token = parsed["access_token"] - self.log.info("Refreshed access token: {access_token}", access_token=self.token) + self.log.info("Refreshed access token") return True else: self.log.error(f"Token refresh didn't contain access token: {parsed}", parsed=parsed)