diff --git a/src/Zengenti.Contensis.RequestHandler.Application/Services/EndpointRequestService.cs b/src/Zengenti.Contensis.RequestHandler.Application/Services/EndpointRequestService.cs index 7649f81..656c248 100644 --- a/src/Zengenti.Contensis.RequestHandler.Application/Services/EndpointRequestService.cs +++ b/src/Zengenti.Contensis.RequestHandler.Application/Services/EndpointRequestService.cs @@ -153,6 +153,17 @@ public async Task Invoke( if (!endpointResponse.IsErrorStatusCode()) { + if (_logger.IsEnabled(LogLevel.Debug)) + { + var curlString = ErrorResources.CreateCurlCallString(routeInfo); + + _logger.LogDebug( + "Invoking endpoint {Uri} was successful with status code {StatusCode}. The equivalent curl command is: {CurlString}", + routeInfo.Uri, + endpointResponse.StatusCode, + curlString); + } + return endpointResponse; }