mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-06-23 11:01:26 +02:00
style: add debug trace on some file
This commit is contained in:
parent
f192e4ebb4
commit
8f6317cea7
@ -11,6 +11,7 @@ class CustomConcurrency extends Browser {
|
|||||||
|
|
||||||
async workerInstance() {
|
async workerInstance() {
|
||||||
const options = this.options.perBrowserOptions.shift();
|
const options = this.options.perBrowserOptions.shift();
|
||||||
|
debug('Launch puppeteer instance with options=%o', options);
|
||||||
let chrome = await this.puppeteer.launch(options);
|
let chrome = await this.puppeteer.launch(options);
|
||||||
let page;
|
let page;
|
||||||
let context;
|
let context;
|
||||||
|
@ -10,6 +10,7 @@ const debug = require('debug')('se-scraper:Scraper');
|
|||||||
|
|
||||||
module.exports = class Scraper {
|
module.exports = class Scraper {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
|
debug('constructor');
|
||||||
const {
|
const {
|
||||||
config = {},
|
config = {},
|
||||||
context = {},
|
context = {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user