mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 21:00:23 -04:00
chore(lint): Use logging.exception instead of logging.error (#10415)
This commit is contained in:
@@ -89,7 +89,7 @@ class CacheEmbedding(Embeddings):
|
||||
db.session.rollback()
|
||||
except Exception as ex:
|
||||
db.session.rollback()
|
||||
logger.error("Failed to embed documents: %s", ex)
|
||||
logger.exception("Failed to embed documents: %s", ex)
|
||||
raise ex
|
||||
|
||||
return text_embeddings
|
||||
|
||||
Reference in New Issue
Block a user