mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-28 09:28:48 +00:00
PGVector logger message level (#4920)
# Change the logger message level The library is logging at `error` level a situation that is not an error. We noticed this error in our logs, but from our point of view it's an expected behavior and the log level should be `warning`.
This commit is contained in:
parent
62d0a01a0f
commit
729e935ea4
@ -184,7 +184,7 @@ class PGVector(VectorStore):
|
|||||||
with Session(self._conn) as session:
|
with Session(self._conn) as session:
|
||||||
collection = self.get_collection(session)
|
collection = self.get_collection(session)
|
||||||
if not collection:
|
if not collection:
|
||||||
self.logger.error("Collection not found")
|
self.logger.warning("Collection not found")
|
||||||
return
|
return
|
||||||
session.delete(collection)
|
session.delete(collection)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user