From 889dcd6116b4643d4990414d75375ac3640f2af6 Mon Sep 17 00:00:00 2001 From: Shawn Hsu Date: Tue, 20 Aug 2024 21:24:58 +0800 Subject: [PATCH] fix: log with error if views not found --- src/controller/controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/controller.ts b/src/controller/controller.ts index 0fc66e0..674a60c 100644 --- a/src/controller/controller.ts +++ b/src/controller/controller.ts @@ -33,7 +33,7 @@ class ViewController { const views = await this.cache.get(key as string); if (!views) { - this.logger.info("Views not found in cache", { key }); + this.logger.error("Views not found in cache", { key }); res.status(StatusCodes.NOT_FOUND).json({ error: "Views not found" }); return; }