@apify/log
Advanced tools
Comparing version 2.2.22 to 2.3.0
@@ -196,3 +196,3 @@ "use strict"; | ||
function getLevelFromEnv() { | ||
const envVar = process.env[import_consts.ENV_VARS.LOG_LEVEL]; | ||
const envVar = process.env[import_consts.APIFY_ENV_VARS.LOG_LEVEL]; | ||
if (!envVar) | ||
@@ -208,3 +208,3 @@ return 4 /* INFO */; | ||
function getFormatFromEnv() { | ||
const envVar = process.env[import_consts.ENV_VARS.LOG_FORMAT] || "TEXT" /* TEXT */; | ||
const envVar = process.env[import_consts.APIFY_ENV_VARS.LOG_FORMAT] || "TEXT" /* TEXT */; | ||
switch (envVar.toLowerCase()) { | ||
@@ -216,3 +216,3 @@ case "JSON" /* JSON */.toLowerCase(): | ||
default: | ||
console.warn(`Unknown value for environment variable ${import_consts.ENV_VARS.LOG_FORMAT}: ${envVar}`); | ||
console.warn(`Unknown value for environment variable ${import_consts.APIFY_ENV_VARS.LOG_FORMAT}: ${envVar}`); | ||
return "TEXT" /* TEXT */; | ||
@@ -219,0 +219,0 @@ } |
{ | ||
"name": "@apify/log", | ||
"version": "2.2.22", | ||
"version": "2.3.0", | ||
"description": "Tools and constants shared across Apify projects.", | ||
@@ -46,6 +46,6 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@apify/consts": "^2.19.0", | ||
"@apify/consts": "^2.20.0", | ||
"ansi-colors": "^4.1.1" | ||
}, | ||
"gitHead": "4d0b489b5e77d1d4597dc999602e43f7ee9507c6" | ||
"gitHead": "19e16689c264ff481ce0bfc77e6a8a49bb1e551f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
115132
Updated@apify/consts@^2.20.0