From 17fed53c838f6bf6024220a31cd068881fce7594 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 4 Mar 2024 17:23:42 +0100 Subject: [PATCH] beacon/light/api: update log message --- beacon/light/api/api_server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beacon/light/api/api_server.go b/beacon/light/api/api_server.go index 65ab00b24b..4cb301ea10 100755 --- a/beacon/light/api/api_server.go +++ b/beacon/light/api/api_server.go @@ -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}})