20 lines
302 B
Go
20 lines
302 B
Go
package ctxmgr
|
|
|
|
import (
|
|
"context"
|
|
|
|
"chat-agent-system/internal/errcode"
|
|
)
|
|
|
|
func reportBackground(err error) {
|
|
if err == nil {
|
|
return
|
|
}
|
|
errcode.Report(context.Background(), errcode.Event{
|
|
Code: "CTXMGR_BACKGROUND",
|
|
Module: "ctxmgr",
|
|
Source: "async",
|
|
Upstream: err.Error(),
|
|
})
|
|
}
|