mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 09:50:45 +00:00
fix empty log error
This commit is contained in:
parent
428d3e2f9c
commit
299a93bc8a
1 changed files with 4 additions and 4 deletions
|
|
@ -133,7 +133,7 @@ func (s *Server) serveRequest(codec ServerCodec, singleShot bool, options CodecO
|
||||||
const size = 64 << 10
|
const size = 64 << 10
|
||||||
buf := make([]byte, size)
|
buf := make([]byte, size)
|
||||||
buf = buf[:runtime.Stack(buf, false)]
|
buf = buf[:runtime.Stack(buf, false)]
|
||||||
log.Error(string(buf))
|
log.Error(fmt.Sprintf("RPC serveRequest %s\n", string(buf)))
|
||||||
}
|
}
|
||||||
s.codecsMu.Lock()
|
s.codecsMu.Lock()
|
||||||
s.codecs.Remove(codec)
|
s.codecs.Remove(codec)
|
||||||
|
|
@ -344,8 +344,8 @@ func (s *Server) exec(ctx context.Context, codec ServerCodec, req *serverRequest
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := codec.Write(response); err != nil {
|
if err := codec.Write(response); err != nil {
|
||||||
log.Error(fmt.Sprintf("%v\n", err))
|
log.Error(fmt.Sprintf("RPC exec %v\n", err))
|
||||||
codec.Close()
|
codec.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
// when request was a subscribe request this allows these subscriptions to be actived
|
// when request was a subscribe request this allows these subscriptions to be actived
|
||||||
|
|
@ -371,7 +371,7 @@ func (s *Server) execBatch(ctx context.Context, codec ServerCodec, requests []*s
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := codec.Write(responses); err != nil {
|
if err := codec.Write(responses); err != nil {
|
||||||
log.Error(fmt.Sprintf("%v\n", err))
|
log.Error(fmt.Sprintf("RPC execBacth %v\n", err))
|
||||||
codec.Close()
|
codec.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue