only log errors
This commit is contained in:
@@ -39,11 +39,11 @@ async function crawlAll() {
|
||||
await saver.connect();
|
||||
await saver.save(results);
|
||||
} catch (e) {
|
||||
console.log("Error saving. Trying next saver! ", e);
|
||||
console.log("[E] Error saving. Trying next saver! ", e);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.log("Error crawling. Trying next crawler! ", e);
|
||||
console.log("[E] Error crawling. Trying next crawler! ", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ export default class OlxCrawler {
|
||||
|
||||
return data;
|
||||
} catch (e) {
|
||||
console.error('Exception caught: ' + e.message);
|
||||
console.error('[E] Exception caught: ' + e.message);
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -150,7 +150,7 @@ export default class OlxCrawler {
|
||||
|
||||
return results;
|
||||
} catch (e) {
|
||||
console.error('Exception caught:' + e);
|
||||
console.error('[E] Exception caught:' + e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ export default class ProstorCrawler {
|
||||
|
||||
return data;
|
||||
} catch (e) {
|
||||
console.error ('Exception caught: ' + e.message);
|
||||
console.error ('[E] Exception caught: ' + e.message);
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -221,7 +221,7 @@ export default class ProstorCrawler {
|
||||
|
||||
return results;
|
||||
} catch (e) {
|
||||
console.error ('Exception caught:' + e);
|
||||
console.error ('[E] Exception caught:' + e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ export default class RentalCrawler {
|
||||
|
||||
return results;
|
||||
} catch (e) {
|
||||
console.error ('Exception caught:' + e);
|
||||
console.error ('[E] Exception caught:' + e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user