Skip to content

Commit

Permalink
fix: fix warning level
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Jan 6, 2025
1 parent c6151f0 commit 976f7ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qdrant_client/local/async_qdrant_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion qdrant_client/local/qdrant_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 976f7ea

Please sign in to comment.