From ed12d9c4caaf2e123dabae5a80a0bdbf0926fdd9 Mon Sep 17 00:00:00 2001 From: Watchful1 Date: Mon, 16 Sep 2024 19:20:28 -0700 Subject: [PATCH] More logging --- personal/combine/merge_and_backfill.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/personal/combine/merge_and_backfill.py b/personal/combine/merge_and_backfill.py index e547c2c..4a4b98e 100644 --- a/personal/combine/merge_and_backfill.py +++ b/personal/combine/merge_and_backfill.py @@ -103,10 +103,14 @@ def query_pushshift(ids, bearer, object_type, pushshift_token_function): time.sleep(2) if response is None: log.warning(f"4 requests failed with no response") + log.warning(url) + log.warning(f"'Authorization': Bearer {bearer}") discord_logging.flush_discord() sys.exit(1) if response.status_code != 200: log.warning(f"4 requests failed with status code {response.status_code}") + log.warning(url) + log.warning(f"'Authorization': Bearer {bearer}") discord_logging.flush_discord() sys.exit(1) return response.json()['data'], bearer