From 926519c9088afc8f5217dd8148000202a399b9ef Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sat, 13 Nov 2021 07:56:36 +0000 Subject: [PATCH] Add logging when we refresh a token to see if it ever works --- src/monzo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/monzo.rs b/src/monzo.rs index 0f8930a..598f60a 100644 --- a/src/monzo.rs +++ b/src/monzo.rs @@ -73,6 +73,7 @@ pub async fn monzo_client_freshened( drop(state_inner); let needs_refresh = exp_at_instant < SystemTime::now(); if needs_refresh { + eprintln!("Refreshing token."); let client = reqwest::Client::new(); let auth_resp: MonzoAuthResponse = client .post("https://api.monzo.com/oauth2/token")