Skip to content

Commit acbeeaa

Browse files
authored
chore(notebooks): add more logs to generate html (#5487)
1 parent f0affee commit acbeeaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/frontend/lib/notebook/utils-server.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ const LONG_TIMEOUT_MS = 250 * 1000;
2323

2424
async function generateNotebookHtml(browser: Browser, url: string) {
2525
const page = await browser.newPage();
26+
page.on("console", (msg) => {
27+
logger.info(`Puppeteer console [${msg.type()}]: ${msg.text()}`);
28+
});
2629
const cssRules: string[] = [];
30+
logger.info("Navigating to notebook URL:", url);
31+
2732
await page.goto(url, { timeout: 10 * 1000, waitUntil: "networkidle0" });
2833

2934
logger.info("Page loaded, waiting for spinner...");

0 commit comments

Comments
 (0)