From 0012c53157b5820b0d4b0a78dd707a4e01c9756e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sch=C3=BCtz?= Date: Sat, 14 Oct 2023 10:22:03 +0100 Subject: [PATCH] Add debug logging to failed Twitter API calls (This should not return anything sensitive. Actions log is public.) --- infra/builder/builder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra/builder/builder.py b/infra/builder/builder.py index db1ba58..7a872f3 100644 --- a/infra/builder/builder.py +++ b/infra/builder/builder.py @@ -46,6 +46,9 @@ def new_tweet(title, bounty, author, url, mention=False): if r.status_code == 200: return True except: + print(f"[!] Twitter API call to '/2/tweets' failed:") + print(r.status_code) + print(r.content) return False return False