Skip to content

Commit 93659ae

Browse files
[CHORE] address logger deprecation warnings (#4668)
## Description of changes This small PR resolves the annoying deprecation warnings of the `logger` library which you can also find in the [CI logs](https://github.com/chroma-core/chroma/actions/runs/15312492452): ```python D:\a\chroma\chroma\chromadb\db\impl\sqlite.py:111: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead ``` ## Test plan - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent bf92670 commit 93659ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromadb/db/impl/sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def start(self) -> None:
108108
self._settings.require("migrations") == "apply"
109109
and self.config.get_parameter("automatically_purge").value is False
110110
):
111-
logger.warn(
111+
logger.warning(
112112
"⚠️ It looks like you upgraded from a version below 0.5.6 and could benefit from vacuuming your database. Run chromadb utils vacuum --help for more information."
113113
)
114114

0 commit comments

Comments
 (0)