Debug: Add logging to GetProductByIdAsync
This commit is contained in:
parent
0e8b53df01
commit
6f4befa188
@ -198,6 +198,12 @@ public class ProductService : IProductService
|
|||||||
.OrderBy(v => v.SortOrder)
|
.OrderBy(v => v.SortOrder)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
Console.WriteLine($"[DEBUG GetProductById] ProductId: {id}, Variants loaded: {variants.Count}");
|
||||||
|
foreach (var v in variants.Take(3))
|
||||||
|
{
|
||||||
|
Console.WriteLine($"[DEBUG GetProductById] - {v.VariantType}: {v.Name}");
|
||||||
|
}
|
||||||
|
|
||||||
return new ProductDto
|
return new ProductDto
|
||||||
{
|
{
|
||||||
Id = product.Id,
|
Id = product.Id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user