mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
better exception logging
This commit is contained in:
parent
4211153527
commit
ed0b1fe115
5 changed files with 9 additions and 14 deletions
|
|
@ -60,7 +60,7 @@ def handle_document(document_id):
|
|||
index.update_document(writer, document)
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error while parsing document {document}: {str(e)}")
|
||||
logger.exception(f"Error while parsing document {document}")
|
||||
finally:
|
||||
parser.cleanup()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue