0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05:00

chore(ml): make execution provider log info-level (#7024)

* change debug log to info

* update test
This commit is contained in:
Mert 2024-02-11 01:12:11 -05:00 committed by GitHub
parent 6ab3b2a274
commit c9b7f4e690
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ class InferenceModel(ABC):
@provider_options.setter @provider_options.setter
def provider_options(self, provider_options: list[dict[str, Any]]) -> None: def provider_options(self, provider_options: list[dict[str, Any]]) -> None:
log.debug(f"Setting execution provider options to {provider_options}") log.info(f"Setting execution provider options to {provider_options}")
self._provider_options = provider_options self._provider_options = provider_options
@property @property

View file

@ -170,7 +170,7 @@ class TestBase:
encoder.clear_cache() encoder.clear_cache()
mock_rmtree.assert_called_once_with(encoder.cache_dir) mock_rmtree.assert_called_once_with(encoder.cache_dir)
info.assert_called_once() assert info.call_count == 2
def test_clear_cache_warns_if_path_does_not_exist(self, mocker: MockerFixture) -> None: def test_clear_cache_warns_if_path_does_not_exist(self, mocker: MockerFixture) -> None:
mock_rmtree = mocker.patch("app.models.base.rmtree", autospec=True) mock_rmtree = mocker.patch("app.models.base.rmtree", autospec=True)