mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Do not quit autoreload with debug on if exception
Also print out traceback to help debugging.
This commit is contained in:
parent
945b8384ed
commit
1718073eb7
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue