mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
beacon/light/api: update log message
This commit is contained in:
parent
d56f586ef3
commit
17fed53c83
1 changed files with 3 additions and 1 deletions
|
|
@ -17,6 +17,8 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/ethereum/go-ethereum/beacon/light/request"
|
||||
"github.com/ethereum/go-ethereum/beacon/light/sync"
|
||||
"github.com/ethereum/go-ethereum/beacon/types"
|
||||
|
|
@ -84,7 +86,7 @@ func (s *ApiServer) SendRequest(id request.ID, req request.Request) {
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
log.Warn("Beacon API request failed", "id", id, "err", err)
|
||||
log.Warn("Beacon API request failed", "type", reflect.TypeOf(req), "reqid", id, "err", err)
|
||||
s.eventCallback(request.Event{Type: request.EvFail, Data: request.RequestResponse{ID: id, Request: req}})
|
||||
} else {
|
||||
s.eventCallback(request.Event{Type: request.EvResponse, Data: request.RequestResponse{ID: id, Request: req, Response: resp}})
|
||||
|
|
|
|||
Loading…
Reference in a new issue