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:
parent
6ab3b2a274
commit
c9b7f4e690
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user