~netlandish/gobwebs

9b6fbd26c6d493d2e0783cbd713df9ec9c3fc2fb — Peter Sanchez 2 years ago 022aca2
Updating error email path
1 files changed, 3 insertions(+), 3 deletions(-)

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