File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -812,6 +812,7 @@ async def call(
812812 timeout : timedelta | None | Literal ['RemainingTime' ] = None ,
813813 webhooks : list [Webhook ] | None = None ,
814814 wait : timedelta | None = None ,
815+ logger : logging .Logger | None | Literal ['default' ] = 'default' ,
815816 ) -> ActorRun | None :
816817 """Start an Actor on the Apify Platform and wait for it to finish before returning.
817818
@@ -834,6 +835,9 @@ async def call(
834835 a webhook set up for the Actor, you do not have to add it again here.
835836 wait: The maximum number of seconds the server waits for the run to finish. If not provided,
836837 waits indefinitely.
838+ logger: Logger used to redirect logs from the Actor run. Using "default" literal means that a predefined
839+ default logger will be used. Setting `None` will disable any log propagation. Passing custom logger
840+ will redirect logs to the provided logger.
837841
838842 Returns:
839843 Info about the started Actor run.
@@ -866,6 +870,7 @@ async def call(
866870 timeout_secs = int (actor_call_timeout .total_seconds ()) if actor_call_timeout is not None else None ,
867871 webhooks = serialized_webhooks ,
868872 wait_secs = int (wait .total_seconds ()) if wait is not None else None ,
873+ logger = logger ,
869874 )
870875
871876 return ActorRun .model_validate (api_result )
You can’t perform that action at this time.
0 commit comments