From 75b005485fbeba8198c8009a3b125a2f3d90be46 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 6 Mar 2022 18:55:45 +0000 Subject: [PATCH] Remove some debugging code from Transactions and TrueLayer --- handler/sinks/truelayer.py | 7 ------- handler/transactions.py | 1 - 2 files changed, 8 deletions(-) diff --git a/handler/sinks/truelayer.py b/handler/sinks/truelayer.py index d0e3131..acfdf08 100644 --- a/handler/sinks/truelayer.py +++ b/handler/sinks/truelayer.py @@ -33,13 +33,10 @@ class TrueLayer(util.Base): Data type: {"monzo": refresh_token, "revolut": refresh_token} """ - print("ADD REFRESH TOKEN", refresh_token) account = self.current_authcode_account if not account: - print("CURRENT AUTHCODE ACCOUNT", account) return False existing_entry = loads(settings.TrueLayer.RefreshKeys) - print("existing entry", existing_entry) existing_entry[account] = refresh_token settings.TrueLayer.RefreshKeys = dumps(existing_entry) settings.write() @@ -67,7 +64,6 @@ class TrueLayer(util.Base): } ) auth_uri = f"{settings.TrueLayer.AuthBase}/?{query}&redirect_uri={settings.TrueLayer.CallbackURL}" - print("SETTING AUTHCODE ACCOUNT TO", account) self.current_authcode_account = account return auth_uri @@ -104,11 +100,8 @@ class TrueLayer(util.Base): self.log.info(f"Retrieved access/refresh tokens for {self.current_authcode_account}") def get_new_tokens_all(self): - print("get new_tokens_all running") refresh_list = loads(settings.TrueLayer.RefreshKeys) - for account in refresh_list: - print("new_new_tokens_all running on", account) self.get_new_token(account) def get_new_token(self, account): diff --git a/handler/transactions.py b/handler/transactions.py index 5731eb1..1b8f199 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -90,7 +90,6 @@ class Transactions(util.Base): if not stored_trade: self.log.error(f"Could not find entry in DB for typeless transaction: {txid}") return - print("BEFORE CONVERT STORED TRADE", stored_trade) stored_trade = util.convert(stored_trade) if "old_state" in inside: if "new_state" in inside: