diff --git a/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs b/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs index 18b8239..f77f5ea 100644 --- a/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs +++ b/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs @@ -68,7 +68,18 @@ public class HomeController : Controller if (string.IsNullOrEmpty(id) || !_libraryCache.ContainsKey(id)) return NotFound(); - return View(_libraryCache[id]); + var cache = _libraryCache[id]; + + if (cache.Documentation.Any()) + { + _logger.LogInformation($"Found cache for {id}: {cache.Documentation.Count} entries"); + } + else + { + _logger.LogError($"Cache for {id} is empty!"); + } + + return View(cache); } public IActionResult Privacy()