mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 05:41:35 +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
|
||||
buf := make([]byte, size)
|
||||
buf = buf[:runtime.Stack(buf, false)]
|
||||
log.Error(string(buf))
|
||||
log.Error(fmt.Sprintf("RPC serveRequest %s\n", string(buf)))
|
||||
}
|
||||
s.codecsMu.Lock()
|
||||
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 {
|
||||
log.Error(fmt.Sprintf("%v\n", err))
|
||||
codec.Close()
|
||||
log.Error(fmt.Sprintf("RPC exec %v\n", err))
|
||||
codec.Close()
|
||||
}
|
||||
|
||||
// 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 {
|
||||
log.Error(fmt.Sprintf("%v\n", err))
|
||||
log.Error(fmt.Sprintf("RPC execBacth %v\n", err))
|
||||
codec.Close()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue