Skip to content

Commit 2e36fee

Browse files
author
Menno Smits
committed
rpc: Reduce codec close error log level
It's quite common for close of the codec to return a "broken pipe" error. It happens for even API request from the client because the client typically closing the connection after making a single API request. There is no need to include these at INFO every time.
1 parent 5444b45 commit 2e36fee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rpc/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func (conn *Conn) Close() error {
289289

290290
// Closing the codec should cause the input loop to terminate.
291291
if err := conn.codec.Close(); err != nil {
292-
logger.Infof("error closing codec: %v", err)
292+
logger.Debugf("error closing codec: %v", err)
293293
}
294294
<-conn.dead
295295

0 commit comments

Comments
 (0)