Skip to content

Commit

Permalink
chore: additional request error details
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop-zengenti committed Apr 30, 2024
1 parent 4ddaf89 commit b3841b9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,14 @@ public async Task<EndpointResponse> Invoke(

using (_logger.BeginScope(state))
{
var curlString = ErrorResources.CreateCurlCallString(routeInfo);

_logger.Log(
logLevel,
"Invoking endpoint {AbsoluteUri} was not successful: {StatusCode}",
"Invoking endpoint {AbsoluteUri} was not successful: {StatusCode}. The equivalent curl command is: {CurlString}",
absoluteUri,
endpointResponse.StatusCode);
endpointResponse.StatusCode,
curlString);
}

return endpointResponse;
Expand Down

0 comments on commit b3841b9

Please sign in to comment.