express-bunyan-logger
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -21,2 +21,6 @@ var bunyan = require('bunyan'), | ||
if (opts.logger) { | ||
logger = opts.logger; | ||
} | ||
// default format | ||
@@ -23,0 +27,0 @@ format = opts.format || ":remote-address :incoming :method :url HTTP/:http-version :status-code :res-headers[content-length] :referer :user-agent[family] :user-agent[major].:user-agent[minor] :user-agent[os] :response-time ms"; |
{ | ||
"name": "express-bunyan-logger", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "a bunyan logger middleware for express", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,2 @@ var express = require('express'); | ||
describe('bunyan-logger', function() { | ||
@@ -143,8 +142,8 @@ it('test logger', function(done) { | ||
.get('/') | ||
.expect(function () { | ||
.end(function () { | ||
if (!middlewareCalled) { | ||
throw new Error('middleware was not called'); | ||
} | ||
}) | ||
.end(done); | ||
done(); | ||
}); | ||
}); | ||
@@ -151,0 +150,0 @@ }); |
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
13333
272