feat: optimize error logging (#808)

This commit is contained in:
takatost 2023-08-12 02:22:43 +08:00 • committed by GitHub
commit f18ce203b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -549,7 +549,7 @@ class IndexingRunner:
qa_documents.append(qa_document)
format_documents.extend(qa_documents)
except Exception as e:
logging.error(str(e))
logging.exception(e)
all_qa_documents.extend(format_documents)