diff options
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/index.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/handlers/index.js b/src/handlers/index.js index 2234b05..4e7ee83 100644 --- a/src/handlers/index.js +++ b/src/handlers/index.js @@ -13,7 +13,7 @@ const headless = NODE_ENV === 'production' || !HEADFUL;  const handleEventAsUser = async (event, browser, user) => { -  console.log(`Running event as ${user.username}`); +  event.log(`Running event as ${user.username}`);    const browserContext = await browser.createIncognitoBrowserContext(); @@ -32,7 +32,7 @@ const handleEventAsUser = async (event, browser, user) => {    const conferencePage = await conferencePagePromise;    await page.close(); -  await attendConference(conferencePage, () => console.log(`Joined the conference at ${conferenceUrl}`)); +  await attendConference(conferencePage, () => event.log(`Joined the conference at ${conferenceUrl}`));    await browserContext.close();  }; @@ -44,7 +44,7 @@ const handleEvent = async event => {      }    }); -  console.log('Participants: ', participants.map(participant => participant.username)); +  event.log('Participants: ', participants.map(participant => participant.username));    const browser = await puppeteer.launch({ headless, args: ['--no-sandbox', '--incognito'] }); | 
