Adding --verbose (or -V) flags moves the logger from ERROR to WARNING
(-V), INFO (-VV), and DEBUG (-VVV). Additional increments were
ignored, but I don't like always masking tracebacks. This patch sets
an additional verbosity level (-VVVV) which logs at DEBUG and
additionally prints exception tracebacks instead of hiding them.
Signed-off-by: W. Trevor King <wking@tremily.us>
args.func(feeds=feeds, args=args)
except _error.RSS2EmailError as e:
e.log()
+ if _logging.ERROR - 10 * args.verbose < _logging.DEBUG:
+ raise # don't mask the traceback
_sys.exit(1)