Skip to content

Commit 24aff9b

Browse files
committed
Updated log plus fix url service
1 parent 363ec41 commit 24aff9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/apps/orders/Genocs.Orders.WebApi/Commands/Handlers/CreateOrderHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public async Task HandleAsync(CreateOrder command, CancellationToken cancellatio
4242
var productDto = await _productServiceClient.GetAsync(command.ProductId);
4343
if (productDto is null)
4444
{
45-
throw new InvalidOperationException($"Product '{command.ProductId}' was not found. Requested for order '{command.ProductId}'");
45+
throw new InvalidOperationException($"Product '{command.ProductId}' was not found. Requested for order '{command.OrderId}'");
4646
}
4747

4848
_logger.LogInformation($"Order '{command.OrderId}' will cost '{productDto.UnitPrice}'$.");

src/apps/orders/Genocs.Orders.WebApi/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"type": "",
2828
"retries": 2,
2929
"services": {
30-
"products": "localhost:5003"
30+
"products": "localhost:5002"
3131
}
3232
},
3333
"logger": {

0 commit comments

Comments
 (0)