express-bunyan-logger
express-bunyan-logger copied to clipboard
200 status is incorrectly logged when connection is aborted
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.