add debugging log switch for crawler process
This commit is contained in:
@@ -14,7 +14,10 @@ const {
|
||||
CRAWLER_AD_TYPE
|
||||
} = require("../../common/enums");
|
||||
|
||||
const { DEFAULT_TIMEZONE } = require("../../config/appConfig");
|
||||
const {
|
||||
DEFAULT_TIMEZONE,
|
||||
PRINT_CRAWLER_DEBUG
|
||||
} = require("../../config/appConfig");
|
||||
|
||||
const RENTAL_ENUMS = {
|
||||
RENTAL_AD_TYPE: {
|
||||
@@ -159,7 +162,9 @@ class RentalCrawler {
|
||||
}
|
||||
|
||||
async indexSinglePage(url, maxResultsPerPage) {
|
||||
// console.log("[RENTAL] Index page : ", url);
|
||||
if (PRINT_CRAWLER_DEBUG) {
|
||||
console.log("[RENTAL] Index page : ", url);
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await fetch(url);
|
||||
|
||||
Reference in New Issue
Block a user