From ef76c92f15aa3a9100b73c280dfca5ae80a58bfc Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 5 Aug 2022 19:12:16 -0600 Subject: [PATCH] Fixing bug in debug path stderr output --- server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index fa06764..28e9e10 100644 --- a/server/server.go +++ b/server/server.go @@ -121,7 +121,8 @@ 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.Path(), c.QueryParams(), stack) + msg := fmt.Sprintf( + "[ERROR] %v\n%s\n%v\n%s\n", err, c.Request().URL.Path, c.QueryParams(), stack) s.e.Logger.Printf(msg) fmt.Fprintf(os.Stderr, msg) } -- 2.45.2