only log errors

This commit is contained in:
GotPPay
2017-11-22 12:42:48 +01:00
parent 755973e42d
commit 7567b27bb8
4 changed files with 7 additions and 7 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -238,7 +238,7 @@ export default class RentalCrawler {
return results;
} catch (e) {
console.error ('Exception caught:' + e);
console.error ('[E] Exception caught:' + e);
}
}