Skip to content

Commit

Permalink
chore: improve logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
ambersun1234 committed Aug 19, 2024
1 parent a7b1b8e commit c9b23e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controller/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class ViewController {
return;
}

this.logger.info("Views found in cache", { key, views });

res.json({ views: parseInt(views) });
}

Expand All @@ -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" });
}
}
Expand Down

0 comments on commit c9b23e0

Please # to comment.