From cfcae8807719102aef7ee0a5538c0484c142a528 Mon Sep 17 00:00:00 2001 From: Don White Date: Sun, 21 Jan 2024 08:21:01 -0500 Subject: [PATCH] Added a switch to enable/disable PINO logging from PINO_LOG_ENABLED, default setting is false (#80) --- lib/logger.js | 1 + package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/logger.js b/lib/logger.js index 161382d..06effb4 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -8,6 +8,7 @@ const fileTransport = pino.transport({ }); module.exports = pino({ + enabled: process.env.PINO_LOG_ENABLED || false, level: process.env.PINO_LOG_LEVEL || 'silent', formatters: { level: (label) => { diff --git a/package-lock.json b/package-lock.json index 54472c9..30e8e0f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nuodb", - "version": "3.7.2", + "version": "3.7.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "nuodb", - "version": "3.7.2", + "version": "3.7.3", "license": "BSD-3-Clause", "dependencies": { "bindings": "^1.5.0", diff --git a/package.json b/package.json index b55707c..3d817f7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": "Dassault Systèmes SE", "description": "The official NuoDB database driver for Node.js. Provides a high-level SQL API on top of the NuoDB Node.js Addon.", "license": "BSD-3-Clause", - "version": "3.7.2", + "version": "3.7.3", "main": "index.js", "keywords": [ "nuodb",