- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for LogPanic (0.17 sec)
-
pilot/pkg/util/runtime/runtime.go
// limitations under the License. package runtime import ( "runtime" "istio.io/istio/pkg/log" ) // LogPanic logs the caller tree when a panic occurs. func LogPanic(r any) { // Same as stdlib http server code. Manually allocate stack trace buffer size // to prevent excessively large logs const size = 64 << 10 stacktrace := make([]byte, size)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go
defer HandleCrash() panic("test panic") }) if err != nil { t.Fatalf("%v", err) } // Example log: // // ...] Observed a panic: test panic // goroutine 6 [running]: // command-line-arguments.logPanic(0x..., 0x...) // .../src/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go:69 +0x... lines := strings.Split(log, "\n") if len(lines) < 4 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go
fn(ctx, r) } for _, fn := range additionalHandlers { fn(ctx, r) } if ReallyCrash { // Actually proceed to panic. panic(r) } } // logPanic logs the caller tree when a panic occurs (except in the special case of http.ErrAbortHandler). func logPanic(ctx context.Context, r interface{}) { if r == http.ErrAbortHandler { // honor the http.ErrAbortHandler sentinel panic value:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 9.9K bytes - Viewed (0) -
tests/fuzz/regression_test.go
defer func() { if r := recover(); r != nil { if _, broken := brokenCases[name]; broken { t.Logf("expected broken case failed: %v", broken) } else { runtime.LogPanic(r) t.Fatalf("panic encountered: %v", r) } } else { // Ensure we update brokenCases when they are fixed if _, broken := brokenCases[name]; broken { t.Fatalf("expected broken case passed")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 10 16:43:09 UTC 2023 - 5.9K bytes - Viewed (0) -
pilot/pkg/networking/core/envoyfilter/cluster_patch.go
func ApplyClusterMerge(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper, c *cluster.Cluster, hosts []host.Name, ) (out *cluster.Cluster) { defer runtime.HandleCrash(runtime.LogPanic, func(any) { log.Errorf("clusters patch %s/%s caused panic, so the patches did not take effect", efw.Namespace, efw.Name) IncrementEnvoyFilterErrorMetric(Cluster) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 6.8K bytes - Viewed (0) -
pilot/pkg/networking/core/envoyfilter/rc_patch.go
patchContext networking.EnvoyFilter_PatchContext, proxy *model.Proxy, efw *model.EnvoyFilterWrapper, routeConfiguration *route.RouteConfiguration, ) (out *route.RouteConfiguration) { defer runtime.HandleCrash(runtime.LogPanic, func(any) { IncrementEnvoyFilterErrorMetric(Route) log.Errorf("route patch %s/%s caused panic, so the patches did not take effect", efw.Namespace, efw.Name) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 13K bytes - Viewed (0) -
pilot/pkg/networking/core/envoyfilter/listener_patch.go
func ApplyListenerPatches( patchContext networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper, lis []*listener.Listener, skipAdds bool, ) (out []*listener.Listener) { defer runtime.HandleCrash(runtime.LogPanic, func(any) { IncrementEnvoyFilterErrorMetric(Listener) log.Errorf("listeners patch %s/%s caused panic, so the patches did not take effect", efw.Namespace, efw.Name) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 15:39:29 UTC 2024 - 26.7K bytes - Viewed (0)