code: func logStackOnRecover(s runtime.NegotiatedSerializer, panicReason interface{}, w http.ResponseWriter) {
  	var buffer bytes.Buffer
  	buffer.WriteString(fmt.Sprintf("recover from panic situation: - %v\r\n", panicReason))
  	for i := 2; ; i++ {
  		_, file, line, ok := rt.Caller(i)
  		if !ok {
  			break
  		}
  		buffer.WriteString(fmt.Sprintf("    %s:%d\r\n", file, line))
  	}
  	klog.Errorln(buffer.String())
  
  	headers := http.Header{}
  	if ct := w.Header().Get("Content-Type"); len(ct) > 0 {
  		headers.Set("Accept", ct)
  	}
  	responsewriters.ErrorNegotiated(apierrors.NewGenericServerResponse(http.StatusInternalServerError, "", schema.GroupResource{}, "", "", 0, false), s, schema.GroupVersion{}, w, &http.Request{Header: headers})
  }
docs: //TODO: Unify with RecoverPanics?