Skip to content

Commit

Permalink
Remove warning on res.close event
Browse files Browse the repository at this point in the history
  • Loading branch information
michaltk committed Jun 27, 2019
1 parent 0b395d9 commit 0474697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bunyan-middleware",
"version": "0.8.0",
"name": "@qb/bunyan-middleware",
"version": "0.8.0-custom.1",
"description": "Request, response logger middleware using bunyan. Also provides request<>response duration.",
"main": "index.js",
"types": "./index.d.ts",
Expand All @@ -13,7 +13,7 @@
"scripts": {},
"repository": {
"type": "git",
"url": "git://github.com/tellnes/bunyan-middleware.git"
"url": "git://github.com/michaltk/bunyan-middleware.git"
},
"keywords": [
"bunyan",
Expand Down

0 comments on commit 0474697

Please sign in to comment.