Skip to content

Commit

Permalink
Added a switch to enable/disable PINO logging from PINO_LOG_ENABLED, …
Browse files Browse the repository at this point in the history
…default setting is false (#80)
  • Loading branch information
dwhite-nuodb authored Jan 21, 2024
1 parent 5b27fae commit cfcae88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cfcae88

Please sign in to comment.