Skip to content

Commit a3a6965

Browse files
committed
chore: remove unncessary logging
1 parent a5e8115 commit a3a6965

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

roborock/devices/file_cache.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ def __init__(
2929
self._init_fn = init_fn
3030
self._file_path = file_path
3131
self._cache_data: CacheData | None = None
32-
logging.info("What's the serialize_fn? %s", serialize_fn)
33-
logging.info("What's the deserialize_fn? %s", deserialize_fn)
3432
self._serialize_fn = serialize_fn
3533
self._deserialize_fn = deserialize_fn
3634

3735
async def get(self) -> CacheData:
3836
"""Get cached value."""
3937
if self._cache_data is not None:
4038
return self._cache_data
41-
logging.info("What's the deserialize_fn? %s", self._deserialize_fn)
4239
data = await load_value(self._file_path, self._deserialize_fn)
4340
if data is not None and not isinstance(data, CacheData):
4441
raise TypeError(f"Invalid cache data loaded from {self._file_path}")
@@ -63,8 +60,6 @@ async def store_value(file_path: pathlib.Path, value: Any, serialize_fn: Callabl
6360
def _store_to_disk(file_path: pathlib.Path, value: Any) -> None:
6461
with open(file_path, "wb") as f:
6562
data = serialize_fn(value)
66-
logging.info("Data to be written to %s: %s", file_path, data)
67-
logging.info("Whts the serialize_fn? %s", serialize_fn)
6863
f.write(data)
6964

7065
await asyncio.to_thread(_store_to_disk, file_path, value)
@@ -78,8 +73,6 @@ def _load_from_disk(file_path: pathlib.Path) -> Any | None:
7873
return None
7974
with open(file_path, "rb") as f:
8075
data = f.read()
81-
logging.info("Data read from %s: %s", file_path, data)
82-
logging.info("Whts the deserialize_fn? %s", deserialize_fn)
8376
return deserialize_fn(data)
8477

8578
return await asyncio.to_thread(_load_from_disk, file_path)

0 commit comments

Comments
 (0)