Debug: Add logging to GetProductByIdAsync

This commit is contained in:
SysAdmin 2025-10-05 16:58:35 +01:00
parent 0e8b53df01
commit 6f4befa188

View File

@ -198,6 +198,12 @@ public class ProductService : IProductService
.OrderBy(v => v.SortOrder)
.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
{
Id = product.Id,