only log stacks on server errors
@@ -296,7 +296,7 @@ func (c *MasterConfig) buildHandlerChain(assetConfig *AssetConfig) (func(http.Ha
}
handler = apiserverfilters.WithCORS(handler, c.Options.CORSAllowedOrigins, nil, nil, nil, "true")
- handler = apiserverfilters.WithPanicRecovery(handler, contextMapper)
+ handler = apiserverfilters.WithPanicRecovery(handler)
handler = apiserverfilters.WithTimeoutForNonLongRunningRequests(handler, contextMapper, kc.LongRunningFunc)
// TODO: MaxRequestsInFlight should be subdivided by intent, type of behavior, and speed of
// execution - updates vs reads, long reads vs short reads, fat reads vs skinny reads.
@@ -335,7 +335,7 @@ func (c *MasterConfig) RunHealth() error {
contextMapper := c.getRequestContextMapper()
handler := serverhandlers.AuthorizationFilter(apiContainer.ServeMux, authz, c.AuthorizationAttributeBuilder, contextMapper)
handler = serverhandlers.AuthenticationHandlerFilter(handler, authn, contextMapper)
- handler = apiserverfilters.WithPanicRecovery(handler, contextMapper)
+ handler = apiserverfilters.WithPanicRecovery(handler)
handler = apifilters.WithRequestInfo(handler, apiserver.NewRequestInfoResolver(&apiserver.Config{}), contextMapper)
handler = apirequest.WithRequestContext(handler, contextMapper)
