From fd293b111196b262c87e5e4a754ba1cf996310bb Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 14 Oct 2022 14:11:03 -0600 Subject: [PATCH] Using completed path in error emails --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index a1c3a73..daa5822 100644 --- a/server/server.go +++ b/server/server.go @@ -159,7 +159,7 @@ The following stack trace was produced: msg := carrier.NewMessage(). SetTo(s.Config.AdminEmail). SetFrom(s.Config.DefaultFromEmail) - msg.SetSubject(fmt.Sprintf("[gobwebs]: Internal Server Error: %s", c.Path())) + msg.SetSubject(fmt.Sprintf("[gobwebs]: Internal Server Error: %s", c.Request().URL.Path)) msg.SetBody(emsg) if rerr := s.Email.SendMail(msg); rerr != nil { s.e.Logger.Printf("Unable to send admin error email: %v", rerr) -- 2.45.2