From fe257821b900bec21095e55481dac1a5c55136b0 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Thu, 7 Jul 2022 16:28:54 -0600 Subject: [PATCH] Adding more verbose output in error logging --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index aa5f351..fa06764 100644 --- a/server/server.go +++ b/server/server.go @@ -121,7 +121,7 @@ func (s *Server) HTTPErrorHandler(err error, c echo.Context) { // Print Debug info if s.Config.Debug { - msg := fmt.Sprintf("[ERROR] %s\n%v\n%s\n", c.Path(), c.QueryParams(), stack) + msg := fmt.Sprintf("[ERROR] %v\n%s\n%v\n%s\n", err, c.Path(), c.QueryParams(), stack) s.e.Logger.Printf(msg) fmt.Fprintf(os.Stderr, msg) } -- 2.45.2