internal/jsonrpc2: fix bug in direction logging of call responses
Change-Id: Id2fe0caf49e68b01641dadbc9e801210ecbd464f Reviewed-on: https://go-review.googlesource.com/c/tools/+/171021 Run-TryBot: Ian Cottrell <iancottrell@google.com> Reviewed-by: Peter Weinberger <pjw@google.com>
This commit is contained in:
parent
052fc3cfdb
commit
0d5674b311
|
@ -162,7 +162,7 @@ func (c *Conn) Call(ctx context.Context, method string, params, result interface
|
|||
select {
|
||||
case response := <-rchan:
|
||||
elapsed := time.Since(before)
|
||||
c.Logger(Send, response.ID, elapsed, request.Method, response.Result, response.Error)
|
||||
c.Logger(Receive, response.ID, elapsed, request.Method, response.Result, response.Error)
|
||||
// is it an error response?
|
||||
if response.Error != nil {
|
||||
return response.Error
|
||||
|
|
Loading…
Reference in New Issue