Skip to content

Commit cfcae88

Browse files
authored
Added a switch to enable/disable PINO logging from PINO_LOG_ENABLED, default setting is false (#80)
1 parent 5b27fae commit cfcae88

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/logger.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const fileTransport = pino.transport({
88
});
99

1010
module.exports = pino({
11+
enabled: process.env.PINO_LOG_ENABLED || false,
1112
level: process.env.PINO_LOG_LEVEL || 'silent',
1213
formatters: {
1314
level: (label) => {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Dassault Systèmes SE",
44
"description": "The official NuoDB database driver for Node.js. Provides a high-level SQL API on top of the NuoDB Node.js Addon.",
55
"license": "BSD-3-Clause",
6-
"version": "3.7.2",
6+
"version": "3.7.3",
77
"main": "index.js",
88
"keywords": [
99
"nuodb",

0 commit comments

Comments
 (0)