fix morgan logger skipping
This commit is contained in:
parent
0936874c78
commit
232f4d0d0a
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ function init (opts) {
|
|||
|
||||
const skip = options.logLevel === 'debug'
|
||||
? () => false
|
||||
: req => _.includes(req.path, ['/poll', '/state'])
|
||||
: (req, res) => _.includes(req.path, ['/poll', '/state']) && res.statusCode === 200
|
||||
|
||||
const app = opts.app
|
||||
const localApp = opts.localApp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue