@netlify/functions
Advanced tools
Comparing version 2.5.0 to 2.5.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.systemLogger = exports.LogLevel = void 0; | ||
const process_1 = require("process"); | ||
const systemLogTag = '__nfSystemLog'; | ||
@@ -29,2 +30,5 @@ const serializeError = (error) => { | ||
doLog(logger, message) { | ||
if (process_1.env.NETLIFY_DEV && !process_1.env.NETLIFY_ENABLE_SYSTEM_LOGGING) { | ||
return; | ||
} | ||
logger(systemLogTag, JSON.stringify({ msg: message, fields: this.fields })); | ||
@@ -31,0 +35,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/main.d.ts", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "JavaScript utilities for Netlify Functions", | ||
@@ -8,0 +8,0 @@ "files": [ |
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
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
25306
529