1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02: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
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
@property

View File

@ -170,7 +170,7 @@ class TestBase:
encoder.clear_cache()
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:
mock_rmtree = mocker.patch("app.models.base.rmtree", autospec=True)