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

Function Println

internal/remotelogs/utils.go:50–64  ·  view source on GitHub ↗

Println 打印普通信息

(tag string, description string)

Source from the content-addressed store, hash-verified

48
49// Println 打印普通信息
50func Println(tag string, description string) {
51 logs.Println("[" + tag + "]" + description)
52
53 select {
54 case logChan <- &pb.NodeLog{
55 Role: teaconst.Role,
56 Tag: tag,
57 Description: description,
58 Level: "info",
59 NodeId: teaconst.NodeId,
60 CreatedAt: time.Now().Unix(),
61 }:
62 default:
63 }
64}
65
66// Warn 打印警告信息
67func Warn(tag string, description string) {

Callers 15

InitMethod · 0.92
StartMethod · 0.92
InitMethod · 0.92
UpdateMethod · 0.92
QuitMethod · 0.92
UpdateActionsMethod · 0.92
InitMethod · 0.92
LoopMethod · 0.92
initMethod · 0.92
DumpMethod · 0.92
InitMethod · 0.92
initListMethod · 0.92

Calls 1

UnixMethod · 0.80

Tested by

no test coverage detected