Skip to content

Commit

Permalink
No longer warns on res.close event
Browse files Browse the repository at this point in the history
See: nodejs/node#20611

res.close is always triggered and is no longer considered and error
or warning condition
  • Loading branch information
msmol committed Jun 1, 2018
1 parent 0b395d9 commit e86dc99
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@ module.exports = function (options, logger) {
res.log[level](reqFinishData, 'request finish')
})

res.on('close', function () {
res.log.warn(
{ req: req
, res: res
, duration: getDuration(start)
}
, 'request socket closed'
)
})

next()
}
}
Expand Down

0 comments on commit e86dc99

Please sign in to comment.