From 57b8e7c73e28e3045a3cbc01a4881137c7618b7f Mon Sep 17 00:00:00 2001 From: "OmegaLeo@Pebblehost" Date: Sun, 14 Dec 2025 17:38:37 +0000 Subject: [PATCH] Added logging for cache --- .../Controllers/HomeController.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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()