chore(lint): Use logging.exception instead of logging.error (#10415)
This commit is contained in:
@@ -86,7 +86,7 @@ class MilvusVector(BaseVector):
|
||||
ids = self._client.insert(collection_name=self._collection_name, data=batch_insert_list)
|
||||
pks.extend(ids)
|
||||
except MilvusException as e:
|
||||
logger.error("Failed to insert batch starting at entity: %s/%s", i, total_count)
|
||||
logger.exception("Failed to insert batch starting at entity: %s/%s", i, total_count)
|
||||
raise e
|
||||
return pks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user