express-bunyan-logger icon indicating copy to clipboard operation
express-bunyan-logger copied to clipboard

200 status is incorrectly logged when connection is aborted

Open jonmellman opened this issue 4 years ago • 0 comments

express-bunyan-logger incorrectly logs a 200 response code when connections are aborted. This happens when a connection is closed due to timeout (server.timeout value is reached), for example.

Other libraries correctly report undefined instead of 200 in this case. For example, see this morgan issue and the corresponding source code here.

jonmellman avatar Jan 21 '21 22:01 jonmellman