Skip to content

Commit

Permalink
server: let handshake packet read/write error log as debug (#16877) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored Apr 28, 2020
1 parent 8a26c65 commit cea3326
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ func (cc *clientConn) String() string {
func (cc *clientConn) handshake(ctx context.Context) error {
if err := cc.writeInitialHandshake(); err != nil {
if errors.Cause(err) == io.EOF {
logutil.Logger(ctx).Info("Could not send handshake due to connection has be closed by client-side")
logutil.Logger(ctx).Debug("Could not send handshake due to connection has be closed by client-side")
} else {
terror.Log(err)
logutil.Logger(ctx).Debug("Write init handshake to client fail", zap.Error(errors.SuspendStack(err)))
}
return err
}
Expand Down Expand Up @@ -486,9 +486,9 @@ func (cc *clientConn) readOptionalSSLRequestAndHandshakeResponse(ctx context.Con
if err != nil {
err = errors.SuspendStack(err)
if errors.Cause(err) == io.EOF {
logutil.Logger(ctx).Info("wait handshake response fail due to connection has be closed by client-side")
logutil.Logger(ctx).Debug("wait handshake response fail due to connection has be closed by client-side")
} else {
logutil.Logger(ctx).Error("wait handshake response fail", zap.Error(err))
logutil.Logger(ctx).Debug("wait handshake response fail", zap.Error(err))
}
return err
}
Expand Down

0 comments on commit cea3326

Please sign in to comment.