From 19becfb5923d442cb3f668a32ab2ef7b1759a5e8 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 3 Feb 2021 18:23:13 +0100 Subject: [PATCH] more logging --- rowers/fakturoid.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rowers/fakturoid.py b/rowers/fakturoid.py index 4b2f6bdd..4d443426 100644 --- a/rowers/fakturoid.py +++ b/rowers/fakturoid.py @@ -22,10 +22,13 @@ headers = { def get_contacts(rower): res = requests.get(contacts_url, auth=auth, headers=headers) url = contacts_search_url+'?query='+str(rower.user.email) + with open('braintreewebhooks.log','a') as f: + f.write('Searching Contact url :'+str(url)+'\n') + res = requests.get(url, auth=auth, headers=headers) with open('braintreewebhooks.log','a') as f: - f.write('Searching Contact Status code'+str(res.status_code)+'\n') + f.write('Searching Contact Status code '+str(res.status_code)+'\n') if res.status_code != 200: return None