better exception logging

This commit is contained in:
jonaswinkler
2021-02-11 22:16:41 +01:00
parent 4211153527
commit ed0b1fe115
5 changed files with 9 additions and 14 deletions

View File

@@ -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()