Skip to content

Commit

Permalink
move ECONNRESET log from error to debug (#1363)
Browse files Browse the repository at this point in the history
* move ECONNRESET log from error to debug

* move client errors to debug
  • Loading branch information
Max authored and cemremengu committed Jan 4, 2019
1 parent 7d6d7e6 commit a8c4d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastify.js
Expand Up @@ -786,7 +786,7 @@ function build (options) {
message: 'Client Error',
statusCode: 400
})
log.error({ err }, 'client error')
log.debug({ err }, 'client error')
socket.end(`HTTP/1.1 400 Bad Request\r\nContent-Length: ${body.length}\r\nContent-Type: application/json\r\n\r\n${body}`)
}

Expand Down

0 comments on commit a8c4d37

Please sign in to comment.