From 1a45713d1d5f369d57ed1461697baedc8d7a0135 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 25 Jan 2016 20:04:51 +0100 Subject: calcurse-caldav: Print XML dump in debug mode only In die_atnode(), we currently print a full dump of the XML node if verbose mode is enabled. Change this behavior such that a dump is only created in debug mode. Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 16a5ca1..eb85459 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -22,7 +22,7 @@ def die(msg): sys.exit(msg.rstrip('\n')) def die_atnode(msg, node): - if verbose: + if debug: msg += '\n\n' msg += 'The error occurred while processing the following XML node:\n' msg += etree.tostring(node).decode('utf-8') -- cgit v1.2.3