Open gitouyoung opened 1 month ago
This is my middlewares:
middleware.Recover(), middleware.TimeoutWithConfig(middleware.TimeoutConfig{ Skipper: func(c echo.Context) bool { return strings.HasPrefix(c.Request().RequestURI, "/debug/pprof/") }, ErrorMessage: "timeout", Timeout: 10 * time.Second, }),
after I add timeout middleware, log cannot show where panic occurs, the stack output always be like :
If I remove timeout middleware, log shows where panic occurs. the stack output is:
I wonder how can Recover() print panic stack correctly while using both Recover() and Timeout()
This is my middlewares:
after I add timeout middleware, log cannot show where panic occurs, the stack output always be like :
If I remove timeout middleware, log shows where panic occurs. the stack output is:
I wonder how can Recover() print panic stack correctly while using both Recover() and Timeout()