mirror of
https://github.com/davidjohnbarton/crawler-google-places.git
synced 2025-12-12 16:38:45 +00:00
Logging improvements
This commit is contained in:
parent
2fddeeded9
commit
6230d31a57
|
|
@ -1,13 +1,10 @@
|
||||||
const Apify = require('apify');
|
const Apify = require('apify');
|
||||||
|
|
||||||
const { sleep } = Apify.utils;
|
const { sleep, log } = Apify.utils;
|
||||||
|
|
||||||
const logError = (msg, e) => {
|
const logError = (msg, e) => log.exception(e, msg);
|
||||||
console.log(`ERROR: ${msg}`);
|
const logInfo = (msg) => log.info(msg);
|
||||||
console.error(e);
|
const logDebug = (msg) => log.debug(msg);
|
||||||
};
|
|
||||||
const logInfo = (msg) => console.log(`INFO: ${msg}`);
|
|
||||||
const logDebug = (msg) => console.log(`DEBUG: ${msg}`);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method scrolls page to xpos, ypos.
|
* Method scrolls page to xpos, ypos.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user