From 976f7ea0bb2e5859320cf818247a27cf2190bcdc Mon Sep 17 00:00:00 2001 From: George Panchuk Date: Mon, 6 Jan 2025 14:14:59 +0100 Subject: [PATCH] fix: fix warning level --- qdrant_client/local/async_qdrant_local.py | 2 +- qdrant_client/local/qdrant_local.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qdrant_client/local/async_qdrant_local.py b/qdrant_client/local/async_qdrant_local.py index 6ddf4fee..ae88e63b 100644 --- a/qdrant_client/local/async_qdrant_local.py +++ b/qdrant_client/local/async_qdrant_local.py @@ -112,7 +112,7 @@ def _load(self) -> None: show_warning( f"Local mode is not recommended for collections with more than {self.LARGE_DATA_THRESHOLD:,} points. Collection <{collection_name}> contains {len(collection.ids)} points. Consider using Qdrant in Docker or Qdrant Cloud for better performance with large datasets.", category=UserWarning, - stacklevel=6, + stacklevel=5, ) self.aliases = meta["aliases"] lock_file_path = os.path.join(self.location, ".lock") diff --git a/qdrant_client/local/qdrant_local.py b/qdrant_client/local/qdrant_local.py index 93b20761..f6c02c0f 100644 --- a/qdrant_client/local/qdrant_local.py +++ b/qdrant_client/local/qdrant_local.py @@ -120,7 +120,7 @@ def _load(self) -> None: "Consider using Qdrant in Docker or Qdrant Cloud for better performance " "with large datasets.", category=UserWarning, - stacklevel=6, + stacklevel=5, ) self.aliases = meta["aliases"]