Skip to content

Commit

Permalink
fix: log with error if views not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ambersun1234 committed Aug 20, 2024
1 parent 349bf82 commit 889dcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 889dcd6

Please # to comment.