diff --git a/src/controller/controller.ts b/src/controller/controller.ts index 6d5bb50..0fc66e0 100644 --- a/src/controller/controller.ts +++ b/src/controller/controller.ts @@ -38,6 +38,8 @@ class ViewController { return; } + this.logger.info("Views found in cache", { key, views }); + res.json({ views: parseInt(views) }); } @@ -54,6 +56,8 @@ class ViewController { await this.cache.set(url, views); } + this.logger.info("Views created", { total: viewMap.size }); + res.json({ message: "Views created" }); } }