How to use the apify-shared/log.setLevel function in apify-shared

To help you get started, we’ve selected a few apify-shared examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apifytech / apify-js / test / crawlers / cheerio_crawler.js View on Github external
after(() => {
            log.setLevel(log.LEVELS.ERROR);
            process.on('uncaughtException', mochaListener);
        });
github apifytech / apify-js / test / puppeteer_pool.js View on Github external
after(() => {
        log.setLevel(logLevel);
        process.env[ENV_VARS.HEADLESS] = prevEnvHeadless;
    });
github apifytech / apify-js / test / crawlers / basic_crawler.js View on Github external
before(() => {
        logLevel = log.getLevel();
        log.setLevel(log.LEVELS.OFF);
        process.env.APIFY_LOCAL_STORAGE_DIR = LOCAL_STORAGE_DIR;
        emptyLocalStorageSubdir('key_value_stores/default');
    });