MCPcopy
hub / github.com/TarsCloud/TarsGo / ReportNotifyInfo

Method ReportNotifyInfo

tars/notifyf.go:40–47  ·  view source on GitHub ↗

ReportNotifyInfo reports notify information with level and info

(level int32, info string)

Source from the content-addressed store, hash-verified

38
39// ReportNotifyInfo reports notify information with level and info
40func (n *NotifyHelper) ReportNotifyInfo(level int32, info string) {
41 n.tm.ELevel = notifyf.NOTIFYLEVEL(level)
42 n.tm.SMessage = info
43 TLOG.Debug(n.tm)
44 if err := n.tn.ReportNotifyInfo(&n.tm, n.comm.Client.Context()); err != nil {
45 TLOG.Errorf("ReportNotifyInfo err: %v", err)
46 }
47}
48
49// ReportNotifyInfo reports notify information with level and info
50func ReportNotifyInfo(level int32, info string) {

Callers

nothing calls this directly

Calls 5

NOTIFYLEVELTypeAlias · 0.92
ReportNotifyInfoMethod · 0.65
ContextMethod · 0.65
DebugMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected