From 1124d1876c765f66508b70c41c0e642f40c7957c Mon Sep 17 00:00:00 2001 From: Michael Hirn Date: Thu, 24 Sep 2020 17:11:20 +0100 Subject: [PATCH] fix(bot): print puppeteer launch options --- src/bots/bot.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bots/bot.ts b/src/bots/bot.ts index 6c02e3a..6fe8889 100644 --- a/src/bots/bot.ts +++ b/src/bots/bot.ts @@ -154,12 +154,13 @@ export class Bot { // LAUNCH BROWSER console.log(`LAUNCH BROWSER: ${userDataDir}`) - const browser = await puppeteer.launch({ + const launchOptions = { ...browserConfig.puppeteerParams, ...browserConfig, ...{ userDataDir } - }) - return browser + } + console.log(`LAUNCH OPTIONS: ${JSON.stringify(launchOptions, null, 2)}`) + return await puppeteer.launch(launchOptions) } /**