fix: various minor logging related fixes

This commit is contained in:
Ferdinand Mütsch
2025-03-13 09:36:37 +01:00
parent 9985e8d9de
commit 8427c97d18
8 changed files with 482 additions and 475 deletions

View File

@@ -53,6 +53,8 @@ func (h *LeaderboardHandler) GetIndex(w http.ResponseWriter, r *http.Request) {
if h.config.IsDev() {
loadTemplates()
}
conf.Log().Request(r).Warn("some testing 7")
if err := templates[conf.LeaderboardTemplate].Execute(w, h.buildViewModel(r, w)); err != nil {
conf.Log().Request(r).Error("failed to get leaderboard page", "error", err)
}