"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/middlewares/recovery/recovery.go" between
traefik-v2.3.2.src.tar.gz and traefik-v2.3.3.src.tar.gz

About: Traefik is a cloud native edge router, a reverse proxy and load balancer for HTTP and TCP-based applications.

recovery.go  (traefik-v2.3.2.src):recovery.go  (traefik-v2.3.3.src)
skipping to change at line 57 skipping to change at line 57
buf = buf[:runtime.Stack(buf, false)] buf = buf[:runtime.Stack(buf, false)]
log.FromContext(ctx).Errorf("Stack: %s", buf) log.FromContext(ctx).Errorf("Stack: %s", buf)
http.Error(rw, http.StatusText(http.StatusInternalServerError), h ttp.StatusInternalServerError) http.Error(rw, http.StatusText(http.StatusInternalServerError), h ttp.StatusInternalServerError)
} }
} }
// https://github.com/golang/go/blob/a0d6420d8be2ae7164797051ec74fa2a2df466a1/sr c/net/http/server.go#L1761-L1775 // https://github.com/golang/go/blob/a0d6420d8be2ae7164797051ec74fa2a2df466a1/sr c/net/http/server.go#L1761-L1775
// https://github.com/golang/go/blob/c33153f7b416c03983324b3e8f869ce1116d84bc/sr c/net/http/httputil/reverseproxy.go#L284 // https://github.com/golang/go/blob/c33153f7b416c03983324b3e8f869ce1116d84bc/sr c/net/http/httputil/reverseproxy.go#L284
func shouldLogPanic(panicValue interface{}) bool { func shouldLogPanic(panicValue interface{}) bool {
//nolint:errorlint // false-positive because panicValue is an interface.
return panicValue != nil && panicValue != http.ErrAbortHandler return panicValue != nil && panicValue != http.ErrAbortHandler
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)