mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix exception logging
Adds exception type to the exception logging. Removes the extra logging for autoreload in debug mode, since `raise` will make it caught by the global `try/except` below and it'll be logged there. This replaces #1723 and also removes extra exception logging caused in #1718.
This commit is contained in:
parent
940eb76b7f
commit
735a4452df
2 changed files with 1 additions and 2 deletions
|
|
@ -444,7 +444,6 @@ def main():
|
|||
|
||||
except Exception as e:
|
||||
if (args.verbosity == logging.DEBUG):
|
||||
logger.critical('Internal failure: %r', e, exc_info=True)
|
||||
raise
|
||||
logger.warning(
|
||||
'Caught exception "%s". Reloading.', e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue