Unknown exceptions were already handled by the code, but they would not
lead to a traceback, making errors harder to find. Now we add a
traceback to the log to help in tracking them down.
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
for cs in sets:
try:
runEachType(cs, options)
for cs in sets:
try:
runEachType(cs, options)
+ except Exception, e:
+ import traceback
logging.error('Unknown Exception: %s' % cs.parityFile)
logging.error('Unknown Exception: %s' % cs.parityFile)
+ logging.error('===== BEGIN Bactrace =====')
+ [logging.error(l) for l in traceback.format_exc(e).split('\n')]
+ logging.error('===== END Bactrace =====')
################################################################################
################################################################################