From 4f97975986bd5ca353a3dcf26f5771ed9ce53e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Mon, 22 Jan 2024 21:54:33 -0800 Subject: [PATCH] fix bad log formatting --- internal/render/render.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/render/render.go b/internal/render/render.go index ea2e0f4..6afb704 100644 --- a/internal/render/render.go +++ b/internal/render/render.go @@ -104,11 +104,11 @@ func RenderTemplate(w http.ResponseWriter, t string, data *models.TemplateData) err := template.Template.Execute(buf, data) if err != nil { - app.Logger.Fatal("Error executing template %s! Goodbye!", "err", err) + app.Logger.Fatal(fmt.Sprintf("Error executing template %s! Goodbye!", filename), "err", err) } _, err = buf.WriteTo(w) if err != nil { - app.Logger.Error("Error writing template %s!\n", "err", err) + app.Logger.Error(fmt.Sprintf("Error writing template %s!", filename), "err", err) } }