Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Some PuppeteerPool log messages moved to DEBUG level

Jan Curn564133cc4276
diff --git a/src/puppeteer_pool.js b/src/puppeteer_pool.js
index c99a9cedc..3bb7ba10a 100644
--- a/src/puppeteer_pool.js
+++ b/src/puppeteer_pool.js
@@ -171,7 +171,7 @@ export default class PuppeteerPool {
if (!this.activeInstances[id]) return log.warning('PuppeteerPool: browser is retired already', { id });
- log.info('PuppeteerPool: retiring browser', { id });
+ log.debug('PuppeteerPool: retiring browser', { id });
this.retiredInstances[id] = instance;
delete this.activeInstances[id];
@@ -185,7 +185,7 @@ export default class PuppeteerPool {
* @ignore
*/
_killRetiredInstances() {
- log.info('PuppeteerPool: retired browsers count', { count: _.values(this.retiredInstances).length });
+ log.debug('PuppeteerPool: retired browsers count', { count: _.values(this.retiredInstances).length });
_.mapObject(this.retiredInstances, (instance) => {
// Kill instances that are more than this.killInstanceAfterMillis from last opened page
@@ -211,7 +211,7 @@ export default class PuppeteerPool {
_killInstance(instance) {
const { id, childProcess } = instance;
- log.info('PuppeteerPool: killing browser', { id });
+ log.debug('PuppeteerPool: killing browser', { id });
delete this.retiredInstances[id];