(debugStr string, recoverVal any)
| 14 | var PanicTelemetryHandler func(panicType string) |
| 15 | |
| 16 | func 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 |
| 25 | func PanicHandler(debugStr string, recoverVal any) error { |
no outgoing calls
no test coverage detected