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:
parent
c176b130bb
commit
1a45713d1d
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user