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`.
searx_updates
Juanma Tristancho 1 year ago committed by GitHub
parent 62d0a01a0f
commit 729e935ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -184,7 +184,7 @@ class PGVector(VectorStore):
with Session(self._conn) as session:
collection = self.get_collection(session)
if not collection:
self.logger.error("Collection not found")
self.logger.warning("Collection not found")
return
session.delete(collection)
session.commit()

Loading…
Cancel
Save