@madgex/datadog-monitoring
Advanced tools
Comparing version 3.0.0 to 3.0.1
17
cli.js
@@ -42,9 +42,12 @@ #!/usr/bin/env node | ||
function handle(signal) { | ||
process.kill(serverProcess.pid, signal); | ||
} | ||
process.on('SIGINT', () => process.exit()); | ||
process.on('SIGTERM', () => process.exit()); | ||
process.on('exit', handle); | ||
['SIGINT', 'SIGTERM', 'SIGQUIT', 'SIGHUP', 'exit'].forEach((signal) => | ||
process.on(signal, () => { | ||
try { | ||
process.kill(serverProcess.pid, signal); | ||
} catch (err) { | ||
console.error(`Error while killing child process:`, err); | ||
} | ||
process.exit(); | ||
}) | ||
); | ||
} | ||
@@ -51,0 +54,0 @@ |
{ | ||
"name": "@madgex/datadog-monitoring", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,3 +45,11 @@ # Madgex Datadog Logging and Monitoring | ||
options: { | ||
prettyPrint: IS_DEV, | ||
// prettyPrint has been deprecated in pino | ||
// if you want to use it, you can add 'pino-pretty' as a dev dependency to your service | ||
// and implement it as below (see options here: https://github.com/pinojs/pino-pretty) | ||
// (note: pino-pretty should only be used in development) | ||
...(IS_DEV && { | ||
transport: { | ||
target: 'pino-pretty', | ||
}, | ||
}), | ||
level: LOG_LEVEL, | ||
@@ -48,0 +56,0 @@ redact: ['req.headers.authorization'], |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37717
943
137
5