pino-multi-stream
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -52,4 +52,4 @@ 'use strict' | ||
dest = streams[i] | ||
stream = dest.stream | ||
if (dest.level <= level) { | ||
stream = dest.stream | ||
if (stream[metadata]) { | ||
@@ -56,0 +56,0 @@ const { lastTime, lastMsg, lastObj, lastLogger } = this |
{ | ||
"name": "pino-multi-stream", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "A wrapper for the Pino logger that provides Bunyan's multipe destination stream API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -330,3 +330,3 @@ 'use strict' | ||
var stream1 = writeStream(function (data, enc, cb) { | ||
messageCount += 1 | ||
messageCount -= 1 | ||
cb() | ||
@@ -342,3 +342,4 @@ }) | ||
{ | ||
stream: stream1 | ||
stream: stream1, | ||
level: 'info' | ||
}, | ||
@@ -354,3 +355,5 @@ { | ||
}, multistream(streams, { dedupe: true })) | ||
log.info('info stream') | ||
log.fatal('fatal stream') | ||
log.fatal('fatal stream') | ||
t.is(messageCount, 1) | ||
@@ -357,0 +360,0 @@ t.done() |
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
41751
1184