We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ced33cb commit ba89a4eCopy full SHA for ba89a4e
go/internal/jsonrpc2/jsonrpc2.go
@@ -333,7 +333,10 @@ func (c *Client) readLoop() {
333
// Read message body
334
body := make([]byte, contentLength)
335
if _, err := io.ReadFull(reader, body); err != nil {
336
- fmt.Printf("Error reading body: %v\n", err)
+ // Only log unexpected errors (not EOF or closed pipe during shutdown)
337
+ if err != io.EOF && !errors.Is(err, os.ErrClosed) && c.running.Load() {
338
+ fmt.Printf("Error reading body: %v\n", err)
339
+ }
340
return
341
}
342
0 commit comments