Skip to content

Commit

Permalink
swapping to warning instead of WARn
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Arceo <franciscojavierarceo@users.noreply.github.com>
  • Loading branch information
franciscojavierarceo committed Jul 1, 2024
1 parent 8775494 commit 14a3931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/feast/infra/online_stores/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def _initialize_conn(db_path: str):
try:
import sqlite_vec # noqa: F401
except ModuleNotFoundError:
logging.WARN("Cannot use sqlite_vec for vector search")
logging.warning("Cannot use sqlite_vec for vector search")
Path(db_path).parent.mkdir(exist_ok=True)
return sqlite3.connect(
db_path,
Expand Down Expand Up @@ -494,7 +494,7 @@ def update(self):
self.conn.enable_load_extension(True)
sqlite_vec.load(self.conn)
except ModuleNotFoundError:
logging.WARN("Cannot use sqlite_vec for vector search")
logging.warning("Cannot use sqlite_vec for vector search")
self.conn.execute(
f"CREATE TABLE IF NOT EXISTS {self.name} (entity_key BLOB, feature_name TEXT, value BLOB, vector_value BLOB, event_ts timestamp, created_ts timestamp, PRIMARY KEY(entity_key, feature_name))"
)
Expand Down

0 comments on commit 14a3931

Please sign in to comment.