server/conn: log more detailed errors (#11731)

This commit is contained in:
lance6716
2019-08-13 21:04:11 +08:00
committed by Zhang Jian
parent e08e9391dd
commit 44292d01e9

View File

@ -632,6 +632,7 @@ func (cc *clientConn) Run(ctx context.Context) {
logutil.Logger(ctx).Info("read packet timeout, close this connection",
zap.Duration("idle", idleTime),
zap.Uint64("waitTimeout", waitTimeout),
zap.Error(err),
)
} else {
errStack := errors.ErrorStack(err)