diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-23 15:08:58 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-23 15:08:58 +0100 |
commit | 2f4ca3c9c8cf632b738ffb36a025acdef2461523 (patch) | |
tree | d3e1acd5f0cbcd1e77c621763bcc2ed0f8e6cb81 /contrib/caldav | |
parent | c2e6b313571b46884ebb1c65727130020c312ad6 (diff) | |
download | 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-x | contrib/caldav/calcurse-caldav.py | 7 |
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) |