MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Warn

Function Warn

internal/remotelogs/utils.go:67–81  ·  view source on GitHub ↗

Warn 打印警告信息

(tag string, description string)

Source from the content-addressed store, hash-verified

65
66// Warn 打印警告信息
67func Warn(tag string, description string) {
68 logs.Println("[" + tag + "]" + description)
69
70 select {
71 case logChan <- &pb.NodeLog{
72 Role: teaconst.Role,
73 Tag: tag,
74 Description: description,
75 Level: "warning",
76 NodeId: teaconst.NodeId,
77 CreatedAt: time.Now().Unix(),
78 }:
79 default:
80 }
81}
82
83// WarnServer 打印服务相关警告
84func WarnServer(tag string, description string) {

Callers 15

initFunction · 0.92
StartMethod · 0.92
openFunction · 0.92
CleanAllMethod · 0.92
purgeLoopMethod · 0.92
purgeLoopMethod · 0.92
doShutdownMethod · 0.92
updateMethod · 0.92
updateAllTrafficMethod · 0.92
doPageLookupMethod · 0.92
doFastcgiMethod · 0.92
StartMethod · 0.92

Calls 1

UnixMethod · 0.80

Tested by

no test coverage detected