@@ 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).