Skip to content

Commit e86dc99

Browse files
author
msmol
committed
No longer warns on res.close event
See: nodejs/node#20611 res.close is always triggered and is no longer considered and error or warning condition
1 parent 0b395d9 commit e86dc99

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

index.js

-10
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,6 @@ module.exports = function (options, logger) {
119119
res.log[level](reqFinishData, 'request finish')
120120
})
121121

122-
res.on('close', function () {
123-
res.log.warn(
124-
{ req: req
125-
, res: res
126-
, duration: getDuration(start)
127-
}
128-
, 'request socket closed'
129-
)
130-
})
131-
132122
next()
133123
}
134124
}

0 commit comments

Comments
 (0)