MCPcopy
hub / github.com/wavetermdev/waveterm / PanicHandlerNoTelemetry

Function PanicHandlerNoTelemetry

pkg/panichandler/panichandler.go:16–22  ·  view source on GitHub ↗
(debugStr string, recoverVal any)

Source from the content-addressed store, hash-verified

14var PanicTelemetryHandler func(panicType string)
15
16func PanicHandlerNoTelemetry(debugStr string, recoverVal any) {
17 if recoverVal == nil {
18 return
19 }
20 log.Printf("[panic] in %s: %v\n", debugStr, recoverVal)
21 debug.PrintStack()
22}
23
24// returns an error (wrapping the panic) if a panic occurred
25func PanicHandler(debugStr string, recoverVal any) error {

Callers 3

GoUpdateActivityWrapFunction · 0.92
GoRecordTEventWrapFunction · 0.92
PanicHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected