Skip to content

Commit 0b8a55e

Browse files
nimrod-teichclaudeavitenzer
authored
fix(chainlib): cut request bodies on every listener's log lines, and name the GUID on the error line (MAG-4454) (#559)
* fix(utils): cut long log strings on a rune boundary (MAG-4454) FormatLongString cut at byte offsets, so a multi-byte character at either cut was split and the JSON log writer replaced its bytes with U+FFFD. Each cut now moves inward to the nearest rune boundary, at most three bytes; bytes that are not UTF-8 are cut where they were. * fix(metrics): carry the request's GUID under GUID on the error-masking line (MAG-4454) UniqueGuidResponseForError logged the request's GUID only under msgSeed, so a search for the request's lines by "GUID":"<id>" missed the line that records why it failed. It now carries GUID too, written as a quoted decimal string like every other line; msgSeed stays. The WebSocket marshal-failure line, which had the GUID only under seed, gets GUID as well. * fix(chainlib): cut the request body on every listener's log lines unless --debug-relays (MAG-4454) The GraphQL and REST listeners logged the whole request body at info, signed transactions included, and every listener's failure line (LogRequestAndResponse, error level) logged it whole, JSON-RPC and Tendermint included, although those two cut their own request line. relayBodyForLog is now the one rule: the body's head and tail, relayMsgLogMaxChars bytes in all, or the whole body under --debug-relays. Each listener logs that form on its request line and hands the same form to its failure line: JSON-RPC, Tendermint POST, REST POST and non-POST, GraphQL, gRPC unary and stream subscribe, and the WebSocket manager. The debug-level success lines are unchanged. The WebSocket manager's RelayMsgLogMaxChars option only ever held the package constant, so it goes; AnalyzeWebSocketErrorAndGetFormattedMessage takes the logged frame as a string. * docs(logs): name the stream label that selects relay_end writes (MAG-4454) The doc said to select writes by the collector's stream label without giving it. The collector labels router lines matching "stateful":("1"|true) with stateful="1", which is also why a | json extraction of stateful lands as stateful_extracted. * test(metrics): read the GUID line test's output from the debug ring (MAG-4454) TestGetUniqueGuidResponseForError_LogsTheGUID captured its lines by assigning zerolog's global logger. MAG-4740 (#617) moves every LavaFormat* call onto an atomic stderr sink, after which that assignment captures nothing and the test fails, whichever of the two PRs lands second. The test now reads the debug log ring, as the listener test beside it does. LavaFormatLog writes the same fields there whichever stderr sink is installed, so the test holds before and after #617, and it still fails when the error-masking line drops GUID. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Took 57 minutes --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: avitenzer <tenzer@clara.co.uk>
1 parent f585df3 commit 0b8a55e

15 files changed

Lines changed: 504 additions & 55 deletions

‎docs/RELAY-END-EVENT.md‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ the router (an HTTP 405, for one); the router's own health and probe relays.
8080
| `attempts` | array | when `stateful` is `true`, when `outcome` is not `ok`, when the relay took more than one attempt or its only attempt failed (a retry, a hedge, a recovery on another upstream), or when an upstream was skipped | One entry per upstream attempt; see [attempts](#attempts). `[]` when nothing was sent. A read its first attempt answered leaves it out. |
8181

8282
LogQL's `json` parser renders numbers and booleans as strings (`has_reply="false"`, `status="500"`)
83-
and skips arrays; `| json attempts="attempts"` extracts the raw array. A field whose name is already a
84-
stream label is renamed with an `_extracted` suffix: where the collector labels writes `stateful`,
85-
`| json | stateful="true"` matches nothing, so select writes by that stream label or by the line
86-
filter `|= "\"stateful\":true"`, which works either way.
83+
and skips arrays; `| json attempts="attempts"` extracts the raw array. The fleet's log collector puts
84+
the static stream label `stateful="1"` on every router line that matches `"stateful":("1"|true)`, so
85+
`{stateful="1"}` selects writes. A field whose name is already a stream label is renamed with an
86+
`_extracted` suffix: on those streams `| json` extracts the field as `stateful_extracted="true"`, and
87+
`| json | stateful="true"` matches nothing. The line filter `|= "\"stateful\":true"` selects writes
88+
on any stream.
8789

8890
`error` and `attempts[].message` are prose for a person. The same failure can read differently on
8991
routers at different `--log-level`s, because an error built by a log formatter whose level is off

‎protocol/chainlib/common.go‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@ func (bcp *BaseChainProxy) CapTimeoutForSend(ctx context.Context, chainMessage C
116116
return connectCtx, cancel
117117
}
118118

119+
// relayBodyForLog is the form of a client's request body that the listeners' log lines carry: its
120+
// head and tail, relayMsgLogMaxChars bytes in all, cut on rune boundaries. A body holds what the
121+
// client sends, signed transactions included, and the request line is written at info, so the whole
122+
// body is logged only when --debug-relays asks for it.
123+
func relayBodyForLog(body string, debugRelays bool) string {
124+
if debugRelays {
125+
return body
126+
}
127+
return utils.FormatLongString(body, relayMsgLogMaxChars)
128+
}
129+
119130
func extractDappIDFromFiberContext(c *fiber.Ctx) (dappID string) {
120131
// fiber.Ctx.Get returns a string aliased to fasthttp's per-request
121132
// header buffer (zero-copy via unsafe). The buffer is recycled when

‎protocol/chainlib/consumer_websocket_manager.go‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ type ConsumerWebsocketManager struct {
121121
rpcConsumerLogs *metrics.RPCConsumerLogs
122122
cmdFlags common.ConsumerCmdFlags
123123
refererMatchString string
124-
relayMsgLogMaxChars int
125124
chainId string
126125
apiInterface string
127126
connectionType string
@@ -137,7 +136,6 @@ type ConsumerWebsocketManagerOptions struct {
137136
RpcConsumerLogs *metrics.RPCConsumerLogs
138137
RefererMatchString string
139138
CmdFlags common.ConsumerCmdFlags
140-
RelayMsgLogMaxChars int
141139
ChainID string
142140
ApiInterface string
143141
ConnectionType string
@@ -155,7 +153,6 @@ func NewConsumerWebsocketManager(options ConsumerWebsocketManagerOptions) *Consu
155153
rpcConsumerLogs: options.RpcConsumerLogs,
156154
cmdFlags: options.CmdFlags,
157155
refererMatchString: options.RefererMatchString,
158-
relayMsgLogMaxChars: options.RelayMsgLogMaxChars,
159156
chainId: options.ChainID,
160157
apiInterface: options.ApiInterface,
161158
connectionType: options.ConnectionType,
@@ -459,7 +456,7 @@ func (cwm *ConsumerWebsocketManager) ListenToMessages(ctx context.Context) {
459456

460457
if messageType, msg, err = websocketConn.ReadMessage(); err != nil {
461458
utils.LavaFormatTrace("error reading msg from the websocket, probably websocket was closed by the user", utils.LogAttr("err", err))
462-
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), err, guidString, msg, cwm.apiInterface, time.Since(startTime))
459+
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), err, guidString, relayBodyForLog(string(msg), cwm.cmdFlags.DebugRelays), cwm.apiInterface, time.Since(startTime))
463460
if formatterMsg != nil {
464461
sendWS(webSocketMsgWithType{messageType: messageType, msg: formatterMsg})
465462
}
@@ -488,18 +485,15 @@ func (cwm *ConsumerWebsocketManager) ListenToMessages(ctx context.Context) {
488485
dappID, ok := websocketConn.Locals(CustomerIDHeader).(string)
489486
if !ok {
490487
// Log and remove the analyze
491-
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), nil, msgSeed, []byte("Unable to extract dappID"), cwm.apiInterface, time.Since(startTime))
488+
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), nil, msgSeed, "Unable to extract dappID", cwm.apiInterface, time.Since(startTime))
492489
if formatterMsg != nil {
493490
sendWS(webSocketMsgWithType{messageType: messageType, msg: formatterMsg})
494491
}
495492
}
496493

497494
userIp := websocketConn.RemoteAddr().String()
498495

499-
logFormattedMsg := string(msg)
500-
if !cwm.cmdFlags.DebugRelays {
501-
logFormattedMsg = utils.FormatLongString(logFormattedMsg, cwm.relayMsgLogMaxChars)
502-
}
496+
logFormattedMsg := relayBodyForLog(string(msg), cwm.cmdFlags.DebugRelays)
503497

504498
utils.LavaFormatDebug("ws in <<<",
505499
utils.LogAttr("seed", msgSeed),
@@ -531,7 +525,7 @@ func (cwm *ConsumerWebsocketManager) ListenToMessages(ctx context.Context) {
531525
continue
532526
}
533527
}
534-
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), err, msgSeed, msg, cwm.apiInterface, time.Since(startTime))
528+
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), err, msgSeed, logFormattedMsg, cwm.apiInterface, time.Since(startTime))
535529
if formatterMsg != nil {
536530
sendWS(webSocketMsgWithType{messageType: messageType, msg: formatterMsg})
537531
}
@@ -556,7 +550,7 @@ func (cwm *ConsumerWebsocketManager) ListenToMessages(ctx context.Context) {
556550
sendWS(webSocketMsgWithType{messageType: messageType, msg: msgData})
557551
} else {
558552
// Send formatted error so client gets feedback (e.g. upstream timeout)
559-
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), err, msgSeed, msg, cwm.apiInterface, time.Since(startTime))
553+
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), err, msgSeed, logFormattedMsg, cwm.apiInterface, time.Since(startTime))
560554
if formatterMsg != nil {
561555
sendWS(webSocketMsgWithType{messageType: messageType, msg: formatterMsg})
562556
}
@@ -605,7 +599,7 @@ func (cwm *ConsumerWebsocketManager) ListenToMessages(ctx context.Context) {
605599
// Normal relay over websocket. (not subscription related)
606600
relayResult, err := cwm.relaySender.SendParsedRelay(frameCtx, metricsData, protocolMessage)
607601
if err != nil {
608-
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), utils.LavaFormatError("could not send parsed relay", err), msgSeed, msg, cwm.apiInterface, time.Since(startTime))
602+
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), utils.LavaFormatError("could not send parsed relay", err), msgSeed, logFormattedMsg, cwm.apiInterface, time.Since(startTime))
609603
if formatterMsg != nil {
610604
sendWS(webSocketMsgWithType{messageType: messageType, msg: formatterMsg})
611605
}
@@ -644,7 +638,7 @@ func (cwm *ConsumerWebsocketManager) ListenToMessages(ctx context.Context) {
644638
utils.LogAttr("params", protocolMessage.GetRPCMessage().GetParams()),
645639
)
646640

647-
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), utils.LavaFormatError("could not start subscription", err), msgSeed, msg, cwm.apiInterface, time.Since(startTime))
641+
formatterMsg := logger.AnalyzeWebSocketErrorAndGetFormattedMessage(websocketConn.LocalAddr().String(), utils.LavaFormatError("could not start subscription", err), msgSeed, logFormattedMsg, cwm.apiInterface, time.Since(startTime))
648642
if formatterMsg != nil {
649643
sendWS(webSocketMsgWithType{messageType: messageType, msg: formatterMsg}) // No need to use outputFormatter here since we are sending an error
650644
continue

‎protocol/chainlib/graphql.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ func (apil *GraphQLChainListener) Serve(ctx context.Context, cmdFlags common.Con
395395
analytics.SetProcessingTimestampBeforeRelay(startTime)
396396
userIp := GetHeaderFromCachedMap(metadataValues, common.IP_FORWARDING_HEADER_NAME, fiberCtx.IP())
397397
requestBody := string(fiberCtx.Body())
398+
loggedBody := relayBodyForLog(requestBody, cmdFlags.DebugRelays)
398399
utils.LavaFormatInfo("Consumer received a new GraphQL request",
399400
utils.LogAttr("GUID", guid),
400401
utils.LogAttr(utils.KEY_REQUEST_ID, ctx),
@@ -403,7 +404,7 @@ func (apil *GraphQLChainListener) Serve(ctx context.Context, cmdFlags common.Con
403404
utils.LogAttr("path", path),
404405
utils.LogAttr("dappID", dappID),
405406
utils.LogAttr("msgSeed", msgSeed),
406-
utils.LogAttr("body", requestBody),
407+
utils.LogAttr("body", loggedBody),
407408
utils.LogAttr("headers", common.RedactMetadata(graphqlHeaders)),
408409
)
409410

@@ -414,7 +415,7 @@ func (apil *GraphQLChainListener) Serve(ctx context.Context, cmdFlags common.Con
414415
apil.logger.AddMetricForHttp(analytics, err, metadataValues)
415416
if err != nil {
416417
errMasking := apil.logger.GetUniqueGuidResponseForError(err, msgSeed)
417-
apil.logger.LogRequestAndResponse("graphql in/out", true, http.MethodPost, path, requestBody, errMasking, msgSeed, time.Since(startTime), err)
418+
apil.logger.LogRequestAndResponse("graphql in/out", true, http.MethodPost, path, loggedBody, errMasking, msgSeed, time.Since(startTime), err)
418419
if relayResult.GetStatusCode() != 0 {
419420
fiberCtx.Status(relayResult.StatusCode)
420421
} else {

‎protocol/chainlib/grpc.go‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func (apil *GrpcChainListener) Serve(ctx context.Context, cmdFlags common.Consum
431431

432432
if err != nil {
433433
errMasking := apil.logger.GetUniqueGuidResponseForError(err, msgSeed)
434-
apil.logger.LogRequestAndResponse("grpc in/out", true, method, string(reqBody), "", errMasking, msgSeed, time.Since(startTime), err)
434+
apil.logger.LogRequestAndResponse("grpc in/out", true, method, relayBodyForLog(string(reqBody), cmdFlags.DebugRelays), "", errMasking, msgSeed, time.Since(startTime), err)
435435
// Even on error the relay result may carry response metadata — notably the
436436
// lava-cross-validation-* failure headers synthesized on a quorum/structural failure. Surface it
437437
// (the proxy attaches it as gRPC trailers on the error path) so gRPC clients get the same
@@ -471,7 +471,7 @@ func (apil *GrpcChainListener) Serve(ctx context.Context, cmdFlags common.Consum
471471
var streamCallback grpcproxy.StreamProxyCallBack
472472
if subscriptionProvider, ok := apil.relaySender.(GRPCSubscriptionProvider); ok && specHasSubscription {
473473
if subscriptionManager := subscriptionProvider.GetGRPCSubscriptionManager(); subscriptionManager != nil {
474-
streamCallback = apil.makeStreamRelayCallback(subscriptionManager)
474+
streamCallback = apil.makeStreamRelayCallback(subscriptionManager, cmdFlags.DebugRelays)
475475
utils.LavaFormatInfo("gRPC server-streaming support enabled",
476476
utils.LogAttr("address", apil.endpoint.NetworkAddress),
477477
utils.LogAttr("chainID", apil.endpoint.ChainID),
@@ -524,8 +524,9 @@ func (apil *GrpcChainListener) Serve(ctx context.Context, cmdFlags common.Consum
524524
// gRPC stream itself, which grpcproxy holds open and pumps.
525525
//
526526
// Returns (nil, nil) for anything that is not a spec-declared gRPC subscription, which
527-
// puts the call back on the unary path unchanged.
528-
func (apil *GrpcChainListener) makeStreamRelayCallback(subscriptionManager GRPCSubscriptionManager) grpcproxy.StreamProxyCallBack {
527+
// puts the call back on the unary path unchanged. debugRelays is --debug-relays: it keeps
528+
// the whole request body on the failure line.
529+
func (apil *GrpcChainListener) makeStreamRelayCallback(subscriptionManager GRPCSubscriptionManager, debugRelays bool) grpcproxy.StreamProxyCallBack {
529530
return func(ctx context.Context, method string, reqBody []byte) (*grpcproxy.StreamResponse, error) {
530531
metadataValues, _ := metadata.FromIncomingContext(ctx)
531532
ctx = utils.ExtractWantedHeadersFromCachedMap(metadataValues, ctx)
@@ -588,7 +589,7 @@ func (apil *GrpcChainListener) makeStreamRelayCallback(subscriptionManager GRPCS
588589
subscriptionFields := *metricsData
589590
apil.logger.AddMetricForGrpc(metricsData, err, &metadataValues)
590591
if err != nil {
591-
apil.logger.LogRequestAndResponse("grpc stream in/out", true, method, string(reqBody), "", err.Error(), connectionUniqueId, time.Since(startTime), err)
592+
apil.logger.LogRequestAndResponse("grpc stream in/out", true, method, relayBodyForLog(string(reqBody), debugRelays), "", err.Error(), connectionUniqueId, time.Since(startTime), err)
592593
return nil, utils.LavaFormatError("failed to start gRPC subscription", err,
593594
utils.LogAttr("GUID", ctx),
594595
utils.LogAttr("_method", method),

‎protocol/chainlib/grpc_streaming_listener_test.go‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func TestStreamRelayCallback_StreamsSubscription(t *testing.T) {
259259
listener := newStreamingListener(t, sender)
260260
manager := newStubGRPCSubscriptionManager()
261261

262-
callback := listener.makeStreamRelayCallback(manager)
262+
callback := listener.makeStreamRelayCallback(manager, false)
263263
response, err := callback(context.Background(), streamingApiName, []byte("{}"))
264264
require.NoError(t, err)
265265
require.NotNil(t, response, "a spec-declared subscription must be served as a stream")
@@ -301,7 +301,7 @@ func TestStreamRelayCallback_DropsTransportOwnedHeaders(t *testing.T) {
301301
},
302302
}
303303

304-
response, err := listener.makeStreamRelayCallback(manager)(context.Background(), streamingApiName, []byte("{}"))
304+
response, err := listener.makeStreamRelayCallback(manager, false)(context.Background(), streamingApiName, []byte("{}"))
305305
require.NoError(t, err)
306306
require.NotNil(t, response)
307307

@@ -339,7 +339,7 @@ func TestStreamRelayCallback_UnaryFallsThrough(t *testing.T) {
339339
listener := newStreamingListener(t, sender)
340340
manager := newStubGRPCSubscriptionManager()
341341

342-
response, err := listener.makeStreamRelayCallback(manager)(context.Background(), unaryApiName, []byte("{}"))
342+
response, err := listener.makeStreamRelayCallback(manager, false)(context.Background(), unaryApiName, []byte("{}"))
343343
require.NoError(t, err)
344344
require.Nil(t, response, "a unary method must fall through to the unary callback")
345345
require.Zero(t, manager.startCalls, "no upstream subscription may be opened for a unary method")
@@ -352,7 +352,7 @@ func TestStreamRelayCallback_UnparseableFallsThrough(t *testing.T) {
352352
listener := newStreamingListener(t, sender)
353353
manager := newStubGRPCSubscriptionManager()
354354

355-
response, err := listener.makeStreamRelayCallback(manager)(context.Background(), "unknown.Service/Method", []byte("{}"))
355+
response, err := listener.makeStreamRelayCallback(manager, false)(context.Background(), "unknown.Service/Method", []byte("{}"))
356356
require.NoError(t, err, "the streaming callback must not claim an error it does not own")
357357
require.Nil(t, response)
358358
require.Zero(t, manager.startCalls)
@@ -365,7 +365,7 @@ func TestStreamRelayCallback_ReleasesClientOnClose(t *testing.T) {
365365
listener := newStreamingListener(t, sender)
366366
manager := newStubGRPCSubscriptionManager()
367367

368-
response, err := listener.makeStreamRelayCallback(manager)(context.Background(), streamingApiName, []byte("{}"))
368+
response, err := listener.makeStreamRelayCallback(manager, false)(context.Background(), streamingApiName, []byte("{}"))
369369
require.NoError(t, err)
370370
require.NotNil(t, response.Close)
371371

@@ -387,7 +387,7 @@ func TestStreamRelayCallback_StartFailurePropagates(t *testing.T) {
387387
manager := newStubGRPCSubscriptionManager()
388388
manager.startErr = errors.New("no gRPC endpoints available")
389389

390-
response, err := listener.makeStreamRelayCallback(manager)(context.Background(), streamingApiName, []byte("{}"))
390+
response, err := listener.makeStreamRelayCallback(manager, false)(context.Background(), streamingApiName, []byte("{}"))
391391
require.Error(t, err)
392392
require.Nil(t, response)
393393
require.Contains(t, err.Error(), "no gRPC endpoints available")
@@ -438,7 +438,7 @@ func TestStreamRelayCallback_ReportsEachStreamOpen(t *testing.T) {
438438
manager := newStubGRPCSubscriptionManager()
439439
manager.startErr = tc.startErr
440440

441-
_, _ = listener.makeStreamRelayCallback(manager)(context.Background(), tc.method, []byte("{}"))
441+
_, _ = listener.makeStreamRelayCallback(manager, false)(context.Background(), tc.method, []byte("{}"))
442442

443443
sender.mu.Lock()
444444
defer sender.mu.Unlock()

‎protocol/chainlib/jsonRPC.go‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ func (apil *JsonRPCChainListener) Serve(ctx context.Context, cmdFlags common.Con
443443
RpcConsumerLogs: apil.logger,
444444
RefererMatchString: refererMatchString,
445445
CmdFlags: cmdFlags,
446-
RelayMsgLogMaxChars: relayMsgLogMaxChars,
447446
ChainID: chainID,
448447
ApiInterface: apiInterface,
449448
ConnectionType: fiber.MethodPost, // We use it for the ParseMsg method, which needs to know the connection type to find the method in the spec
@@ -483,10 +482,7 @@ func (apil *JsonRPCChainListener) Serve(ctx context.Context, cmdFlags common.Con
483482
headers := convertToMetadataMap(metadataValues)
484483

485484
msg := string(fiberCtx.Body())
486-
logFormattedMsg := msg
487-
if !cmdFlags.DebugRelays {
488-
logFormattedMsg = utils.FormatLongString(logFormattedMsg, relayMsgLogMaxChars)
489-
}
485+
logFormattedMsg := relayBodyForLog(msg, cmdFlags.DebugRelays)
490486

491487
path := "/" + fiberCtx.Params("*")
492488
utils.LavaFormatInfo("Consumer received a new JSON-RPC request",
@@ -536,7 +532,7 @@ func (apil *JsonRPCChainListener) Serve(ctx context.Context, cmdFlags common.Con
536532
errMasking := apil.logger.GetUniqueGuidResponseForError(err, msgSeed)
537533

538534
// Log request and response
539-
apil.logger.LogRequestAndResponse("jsonrpc http", true, "POST", fiberCtx.Request().URI().String(), msg, errMasking, msgSeed, time.Since(startTime), err)
535+
apil.logger.LogRequestAndResponse("jsonrpc http", true, "POST", fiberCtx.Request().URI().String(), logFormattedMsg, errMasking, msgSeed, time.Since(startTime), err)
540536

541537
// Set status to internal error
542538
if relayResult.GetStatusCode() != 0 {

0 commit comments

Comments
 (0)