From 8cc6e5cd6cfec5904957d13b9aae691f3c947029 Mon Sep 17 00:00:00 2001 From: OB42 <19638906+OB42@users.noreply.github.com> Date: Mon, 14 Mar 2022 06:59:16 -0600 Subject: [PATCH] Printing a warning when a browser instance is killed because of maxSurvivalTime I think adding a warning when an instance is killed because it ran longer than the maxSurvivalTime would save people some time when debugging, because it's really not obvious to know what killed the process if you don't know the inner working of the library. --- src/core/BrowserLauncher.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/BrowserLauncher.ts b/src/core/BrowserLauncher.ts index f0a2f81..f9ac6ce 100644 --- a/src/core/BrowserLauncher.ts +++ b/src/core/BrowserLauncher.ts @@ -260,6 +260,7 @@ export class BrowserLauncher { const p: Promise[] = [] for (const fb of killThese) { + console.warn('WARNING: Killing a browser instance because maxSurvivalTime was reached.') p.push(fb.shutdown()) }