~netlandish/gobwebs

fd293b111196b262c87e5e4a754ba1cf996310bb — Peter Sanchez 2 years ago 048a1eb
Using completed path in error emails
1 files changed, 1 insertions(+), 1 deletions(-)

M server/server.go
M server/server.go => server/server.go +1 -1
@@ 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)