We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59f5c72 + e899e8d commit fe0165eCopy full SHA for fe0165e
1 file changed
common-lib/middlewares/recovery.go
@@ -35,7 +35,8 @@ func Recovery(next http.Handler) http.Handler {
35
if errors.Is(err.(error), http.ErrAbortHandler) {
36
// suppress logging for http.ErrAbortHandler panic
37
// separate metric for reverse proxy panic recovery
38
- metrics.IncReverseProxyPanicRecoveryCount("proxy", r.Host, r.Method, r.RequestURI)
+ //metrics.IncReverseProxyPanicRecoveryCount("proxy", r.Host, r.Method, r.RequestURI)
39
+ log.Print("Reverse Proxy Panic Recovery count increased ", "Host: ", r.Host, "Method: ", r.Method, "Path: ", r.RequestURI)
40
} else {
41
// log and increment panic recovery count
42
metrics.IncPanicRecoveryCount("handler", r.Host, r.Method, r.RequestURI)
0 commit comments