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>
This commit is contained in:
Lukas Fleischer 2016-01-25 20:04:51 +01:00
parent c176b130bb
commit 1a45713d1d

View File

@ -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')