~netlandish/gobwebs

fe257821b900bec21095e55481dac1a5c55136b0 — Peter Sanchez 2 years ago c7072db
Adding more verbose output in error logging
1 files changed, 1 insertions(+), 1 deletions(-)

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