Skip to content

Commit

Permalink
Merge pull request #9 from renproject/fix/handshake-log
Browse files Browse the repository at this point in the history
Use debug log for bad handshake instead of error
  • Loading branch information
Nadimpalli Susruth authored Nov 5, 2019
2 parents c32e13a + cde5a8a commit 4e332a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (server *Server) handle(ctx context.Context, conn net.Conn) {
handshakeCtx, handshakeCancel := context.WithTimeout(ctx, server.options.Timeout)
defer handshakeCancel()
if err := server.options.Handshaker.AcceptHandshake(handshakeCtx, conn); err != nil {
server.options.Logger.Errorf("bad handshake with %v: %v", conn.RemoteAddr().String(), err)
server.options.Logger.Debugf("bad handshake with %v: %v", conn.RemoteAddr().String(), err)
return
}
}
Expand Down

0 comments on commit 4e332a5

Please sign in to comment.