diff --git a/lib/gethfork/rpc/json.go b/lib/gethfork/rpc/json.go index c4f1821aef..9634006d3a 100644 --- a/lib/gethfork/rpc/json.go +++ b/lib/gethfork/rpc/json.go @@ -225,6 +225,7 @@ func (c *jsonCodec) readBatch() (messages []*jsonrpcMessage, batch bool, err err if err := c.decode(&rawmsg); err != nil { return nil, false, err } + fmt.Printf("MSG: %s\n", rawmsg) messages, batch = parseMessage(rawmsg) for i, msg := range messages { if msg == nil { diff --git a/lib/gethfork/rpc/server.go b/lib/gethfork/rpc/server.go index 30f6787726..3810f64b31 100644 --- a/lib/gethfork/rpc/server.go +++ b/lib/gethfork/rpc/server.go @@ -149,9 +149,6 @@ func (s *Server) serveSingleRequest(ctx context.Context, codec ServerCodec) { if err != io.EOF { resp := errorMessage(&invalidMessageError{"parse error"}) fmt.Printf(">> Parse error %s. requests: %v\n", err, reqs) - for _, req := range reqs { - fmt.Printf(">> request: %s\n", req) - } codec.writeJSON(ctx, resp, true) } return