Improved logging clarity in storage operations

This commit is contained in:
yangdx
2025-03-10 02:05:55 +08:00
parent 6b0acce644
commit 14e1b31d1c
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ class JsonDocStatusStorage(DocStatusStorage):
async def upsert(self, data: dict[str, dict[str, Any]]) -> None:
if not data:
return
logger.info(f"Inserting {len(data)} to {self.namespace}")
logger.info(f"Inserting {len(data)} records to {self.namespace}")
async with self._storage_lock:
self._data.update(data)
await set_all_update_flags(self.namespace)

View File

@@ -108,7 +108,7 @@ class JsonKVStorage(BaseKVStorage):
async def upsert(self, data: dict[str, dict[str, Any]]) -> None:
if not data:
return
logger.info(f"Inserting {len(data)} to {self.namespace}")
logger.info(f"Inserting {len(data)} records to {self.namespace}")
async with self._storage_lock:
self._data.update(data)
await set_all_update_flags(self.namespace)