~mna/kick

e3f133a23dd60e553f6d763fb5935307162274eb — Martin Angers 9 months ago 52ed383 master
get stack before call
1 files changed, 2 insertions(+), 1 deletions(-)

M builder/middleware.go
M builder/middleware.go => builder/middleware.go +2 -1
@@ 183,7 183,8 @@ func panicRecovery(recoverFn func(http.ResponseWriter, *http.Request, interface{
		return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
			defer func() {
				if err := recover(); err != nil {
					recoverFn(w, r, err, debug.Stack())
					stack := debug.Stack()
					recoverFn(w, r, err, stack)
				}
			}()
			h.ServeHTTP(w, r)