From 8018caab47a8417a5a8b80fdfe83825be894812e Mon Sep 17 00:00:00 2001 From: = Date: Mon, 14 Sep 2020 06:53:35 -0700 Subject: [PATCH] Enable inspector and debugger --- app/crawler/specificCrawlers/olx.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/crawler/specificCrawlers/olx.js b/app/crawler/specificCrawlers/olx.js index 84a6d09..87f0957 100644 --- a/app/crawler/specificCrawlers/olx.js +++ b/app/crawler/specificCrawlers/olx.js @@ -214,6 +214,7 @@ class OlxCrawler { try { const res = await fetch(url); + logDebug("Got category results for: ", url); const body = await res.text(); const $ = cheerio.load(body); let hrefs = []; diff --git a/package.json b/package.json index eb716a4..d591eb5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "node ./index.js", + "start": "node --inspect ./index.js", "start-mon": "nodemon ./index.js", "migrate": "cd app && npx sequelize db:migrate", "seed": "cd app && npx sequelize db:seed:all",