From 9b6fbd26c6d493d2e0783cbd713df9ec9c3fc2fb Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 2 Sep 2022 07:40:05 -0600 Subject: [PATCH] Updating error email path --- server/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/server.go b/server/server.go index 1340138..a4d033e 100644 --- a/server/server.go +++ b/server/server.go @@ -122,7 +122,7 @@ func (s *Server) HTTPErrorHandler(err error, c echo.Context) { // Print Debug info if s.Config.Debug { msg := fmt.Sprintf( - "[ERROR] %v\n%s\n%v\n%s\n", err, c.Request().URL.Path, c.QueryParams(), stack) + "[ERROR] %v\n%s (%s)\n%v\n%s\n", err, c.Request().URL.Path, c.Path(), c.QueryParams(), stack) s.e.Logger.Printf(msg) fmt.Fprintf(os.Stderr, msg) } @@ -144,7 +144,7 @@ func (s *Server) HTTPErrorHandler(err error, c echo.Context) { At the following path: -%s +%s (%s) With these variables: @@ -154,7 +154,7 @@ By the user: %s The following stack trace was produced: -%s`, err, c.Path(), c.QueryParams(), userStr, stack) +%s`, err, c.Request().URL.Path, c.Path(), c.QueryParams(), userStr, stack) msg := carrier.NewMessage(). SetTo(s.Config.AdminEmail). -- 2.45.2