Skip to content

Commit

Permalink
fix: error response data logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ekonyukov committed Jul 8, 2024
1 parent f717f6e commit 08fc776
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task InvokeAsync(HttpContext httpContext)
var response = httpContext.GetJsonRpcResponse() as UntypedErrorResponse;
if (response?.Error != null)
{
logger.LogInformation("JsonRpc Error: Id = {ResponseId}, Code = {Code}, Message = {Message}, Data = {Data}", response.Id, response.Error.Code, response.Error.Message, response.Error.Data?.ToString());
logger.LogInformation("JsonRpc Error: Id = {ResponseId}, Code = {Code}, Message = {Message}, Data = {Data}", response.Id, response.Error.Code, response.Error.Message, response.Error.Data?.RootElement.ToString());
}
}
}

0 comments on commit 08fc776

Please sign in to comment.