Skip to content

Commit dd6301b

Browse files
committed
Add warning to log when changing the flag
1 parent 0264165 commit dd6301b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/apify/_configuration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ def disable_browser_sandbox_on_platform(self) -> Self:
373373
in a container. It can be on the contrary undesired as the process in the container might be running as root and
374374
this will crash chromium that was started with browser sandbox mode.
375375
"""
376-
self.disable_browser_sandbox = self.is_at_home or self.disable_browser_sandbox
376+
if self.is_at_home and not self.disable_browser_sandbox:
377+
self.disable_browser_sandbox = True
378+
logger.warning('Actor is running on the Apify platform, `disable_browser_sandbox` was changed to True.')
377379
return self
378380

379381
@classmethod

0 commit comments

Comments
 (0)