Puppeteer headless mode log capture in Linux containers
Deploying Puppeteer in Linux-based containers using headless: "new" can result in browser initialization failures that do not throw explicit JavaScript exceptions. While the browser.on('disconnected') event captures stdout and stderr, logs are frequently truncated when the process is terminated by system-level signals, such as an Out-of-Memory (OOM) killer.