mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver/api/v3rpc: fix race in stream error logging
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
38326d002e
commit
6cf3dae93e
@ -159,7 +159,7 @@ func (ws *watchServer) Watch(stream pb.Watch_WatchServer) (err error) {
|
||||
if rerr := sws.recvLoop(); rerr != nil {
|
||||
if isClientCtxErr(stream.Context().Err(), rerr) {
|
||||
if sws.lg != nil {
|
||||
sws.lg.Debug("failed to receive watch request from gRPC stream", zap.Error(err))
|
||||
sws.lg.Debug("failed to receive watch request from gRPC stream", zap.Error(rerr))
|
||||
} else {
|
||||
plog.Debugf("failed to receive watch request from gRPC stream (%q)", rerr.Error())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user