Skip to content

Commit

Permalink
Stop logging socket errors on valid shutdown as problematic errors
Browse files Browse the repository at this point in the history
References #460
  • Loading branch information
Gert-dev committed Sep 14, 2019
1 parent 9f02709 commit e39a3e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ class Proxy {
onSocketError(error) {
// Do nothing here, this should silence socket errors such as ECONNRESET. After this is called, the socket
// will be closed and all handling is performed there.
console.error('The socket connection notified us of an error', error);
console.debug(
'The socket connection notified us of an error (this is normal if the server is shutdown).',
error
);
}

/**
Expand Down

0 comments on commit e39a3e3

Please sign in to comment.