summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-25 20:04:51 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-25 20:17:53 +0100
commit1a45713d1d5f369d57ed1461697baedc8d7a0135 (patch)
tree95b3873ca09b6fdfd55872011d725b2c90103436
parentc176b130bbbd457b000c7c03f41679798fbd1104 (diff)
downloadcalcurse-1a45713d1d5f369d57ed1461697baedc8d7a0135.zip
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 <lfleischer@calcurse.org>
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py2
1 files changed, 1 insertions, 1 deletions
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')