diff --git a/.gitignore b/.gitignore index d9fbb4b..b8053d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store .env.local +tmp/* diff --git a/projects/scrape-txs/src/lib/run.ts b/projects/scrape-txs/src/lib/run.ts index 8a39039..4d1caaf 100644 --- a/projects/scrape-txs/src/lib/run.ts +++ b/projects/scrape-txs/src/lib/run.ts @@ -42,6 +42,7 @@ export async function run(months: dayjs.Dayjs[]) { let createTxs: InsertObject[]; let deleteTxIds: string[]; try { + console.log('beginning'); const result = await (async () => { if (process.env.BANK_KEY === 'bancoIndustrialGt') { return await bancoIndustrialScrape({ @@ -62,7 +63,9 @@ export async function run(months: dayjs.Dayjs[]) { createTxs = result.createTxs; deleteTxIds = result.deleteTxIds; } catch (error) { + console.log('1'); if (error instanceof playwrightErrors.TimeoutError && isLambda()) { + console.log('2'); const zipExtension = '.zip'; const traceAbsolutePath = `/tmp/trace${zipExtension}`; await context.tracing.stop({ path: traceAbsolutePath });