Don't log "connection reset" errors

master
Sven Slootweg 9 years ago
parent 24cfa4f588
commit c77b9d63d2

@ -6,6 +6,11 @@ domain = require "domain"
app = express() app = express()
reportError = (err, type = "error", sync = false) -> reportError = (err, type = "error", sync = false) ->
if err.code == "ECONNRESET"
# We're not interested in these for now, they're just aborted requests.
# TODO: Investigate whether there may also be other scenarios where an ECONNRESET is raised.
return
errorPayload = {} errorPayload = {}
Object.getOwnPropertyNames(err).forEach (key) -> Object.getOwnPropertyNames(err).forEach (key) ->

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save