From 2f4ca3c9c8cf632b738ffb36a025acdef2461523 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 23 Jan 2016 15:08:58 +0100 Subject: calcurse-caldav: Include command/path in the debug output Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 7 +++++-- 1 file 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) -- cgit v1.2.3-70-g09d2