Skip to content

Commit

Permalink
tcp: use debug log instead of error
Browse files Browse the repository at this point in the history
  • Loading branch information
jazg committed Nov 5, 2019
1 parent 3658259 commit 0a9a193
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 @@ -75,7 +75,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 0a9a193

Please sign in to comment.