File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -812,6 +812,7 @@ async def call(
812
812
timeout : timedelta | None | Literal ['RemainingTime' ] = None ,
813
813
webhooks : list [Webhook ] | None = None ,
814
814
wait : timedelta | None = None ,
815
+ logger : logging .Logger | None | Literal ['default' ] = 'default' ,
815
816
) -> ActorRun | None :
816
817
"""Start an Actor on the Apify Platform and wait for it to finish before returning.
817
818
@@ -834,6 +835,9 @@ async def call(
834
835
a webhook set up for the Actor, you do not have to add it again here.
835
836
wait: The maximum number of seconds the server waits for the run to finish. If not provided,
836
837
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.
837
841
838
842
Returns:
839
843
Info about the started Actor run.
@@ -866,6 +870,7 @@ async def call(
866
870
timeout_secs = int (actor_call_timeout .total_seconds ()) if actor_call_timeout is not None else None ,
867
871
webhooks = serialized_webhooks ,
868
872
wait_secs = int (wait .total_seconds ()) if wait is not None else None ,
873
+ logger = logger ,
869
874
)
870
875
871
876
return ActorRun .model_validate (api_result )
You can’t perform that action at this time.
0 commit comments