fix: improve error logging for vector search operation in MyScale (#25087)

This commit is contained in:
GuanMu 2025-09-03 22:24:45 +08:00 committed by GitHub
parent c7700ac176
commit ff7a0e3170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ class MyScaleVector(BaseVector):
)
for r in self._client.query(sql).named_results()
]
except Exception as e:
logger.exception("\033[91m\033[1m%s\033[0m \033[95m%s\033[0m", type(e), str(e)) # noqa:TRY401
except Exception:
logger.exception("Vector search operation failed")
return []
def delete(self) -> None: