MCPcopy Create free account
hub / github.com/astercloud/aster / defaultPanicHandler

Function defaultPanicHandler

pkg/actor/system.go:71–78  ·  view source on GitHub ↗
(actor *PID, msg Message, err any)

Source from the content-addressed store, hash-verified

69}
70
71func defaultPanicHandler(actor *PID, msg Message, err any) {
72 actorLog.Error(context.Background(), "PANIC in actor", map[string]any{
73 "actor_id": actor.ID,
74 "msg_kind": msg.Kind(),
75 "error": err,
76 "stack": string(debug.Stack()),
77 })
78}
79
80// SystemStats 系统统计
81type SystemStats struct {

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.65
KindMethod · 0.65

Tested by

no test coverage detected