Skip to content

Commit 6fbb5f4

Browse files
committed
Ensure proper storoage client init when is_at_home to avoid unnecesarry debug log
1 parent b256876 commit 6fbb5f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/apify/_actor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ async def init(self) -> None:
325325
# If the Actor is running on the Apify platform, we set the cloud storage client.
326326
if self.is_at_home():
327327
service_locator.set_storage_client(self._cloud_storage_client)
328-
self._finalize_implicit_local_storage_client()
328+
self._local_storage_client = self._cloud_storage_client
329+
else:
330+
self._finalize_implicit_local_storage_client()
329331
service_locator.set_event_manager(self.event_manager)
330332

331333
# The logging configuration has to be called after all service_locator set methods.

0 commit comments

Comments
 (0)