diff --git a/TeleBot/TeleBot/Services/LittleShopService.cs b/TeleBot/TeleBot/Services/LittleShopService.cs index b5f6a72..48ca9c8 100644 --- a/TeleBot/TeleBot/Services/LittleShopService.cs +++ b/TeleBot/TeleBot/Services/LittleShopService.cs @@ -141,11 +141,18 @@ namespace TeleBot.Services { if (!await AuthenticateAsync()) return null; - + var result = await _client.Catalog.GetProductByIdAsync(productId); - + if (result.IsSuccess && result.Data != null && result.Data.IsActive) { + _logger.LogInformation("GetProduct {ProductId}: {Name} | Variants: {Count} | Base Price: £{Price}", + productId, result.Data.Name, result.Data.Variants?.Count ?? 0, result.Data.Price); + if (result.Data.Variants?.Any() == true) + { + _logger.LogInformation(" First variant: {Name} at £{Price}", + result.Data.Variants.First().Name, result.Data.Variants.First().Price); + } return result.Data; }