Do not quit autoreload with debug on if exception

Also print out traceback to help debugging.
This commit is contained in:
Yu-Jie Lin 2016-02-25 14:36:54 +08:00
commit 1718073eb7

View file

@ -469,7 +469,8 @@ def main():
except Exception as e:
if (args.verbosity == logging.DEBUG):
raise
logger.error(
'Exception occurred: %s', e, exc_info=True)
logger.warning(
'Caught exception "%s". Reloading.', e)