aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/caldav
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-23 15:08:58 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-23 15:08:58 +0100
commit2f4ca3c9c8cf632b738ffb36a025acdef2461523 (patch)
treed3e1acd5f0cbcd1e77c621763bcc2ed0f8e6cb81 /contrib/caldav
parentc2e6b313571b46884ebb1c65727130020c312ad6 (diff)
downloadcalcurse-2f4ca3c9c8cf632b738ffb36a025acdef2461523.tar.gz
calcurse-2f4ca3c9c8cf632b738ffb36a025acdef2461523.zip
calcurse-caldav: Include command/path in the debug output
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index 0b1499d..3c544d6 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -86,10 +86,12 @@ def remote_query(cmd, path, additional_headers, body):
headers.update(additional_headers)
if debug:
- print("> " + repr(headers))
+ print("> %s %s" % (cmd, path))
+ print("> Headers: " + repr(headers))
if body:
for line in body.splitlines():
print("> " + line)
+ print()
conn.request(cmd, path, headers=headers, body=body)
@@ -102,9 +104,10 @@ def remote_query(cmd, path, additional_headers, body):
body = resp.read().decode('utf-8')
if debug:
- print("< " + repr(headers))
+ print("< Headers: " + repr(headers))
for line in body.splitlines():
print("< " + line)
+ print()
return (headers, body)