From c3b8f0c8af03f29d5bbdcc3fe47601f1bd8abb3a Mon Sep 17 00:00:00 2001 From: Watchful1 Date: Wed, 13 Sep 2023 10:06:12 -0700 Subject: [PATCH] Log the reauth response --- personal/combine/build_day.py | 1 + 1 file changed, 1 insertion(+) diff --git a/personal/combine/build_day.py b/personal/combine/build_day.py index 7e03057..8c63fda 100644 --- a/personal/combine/build_day.py +++ b/personal/combine/build_day.py @@ -29,6 +29,7 @@ reg = re.compile(r"\d\d-\d\d-\d\d_\d\d-\d\d") def re_auth_pushshift(old_token): response = requests.post(f"https://auth.pushshift.io/refresh?access_token={old_token}") result = response.json() + log.warning(f"Reauth responce: {str(result)}") new_token = result['access_token'] log.warning(f"New pushshift token: {new_token}") return new_token