MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / Start

Method Start

internal/nodes/http_access_log_queue.go:46–58  ·  view source on GitHub ↗

Start 开始处理访问日志

()

Source from the content-addressed store, hash-verified

44
45// Start 开始处理访问日志
46func (this *HTTPAccessLogQueue) Start() {
47 ticker := time.NewTicker(1 * time.Second)
48 for range ticker.C {
49 err := this.loop()
50 if err != nil {
51 if rpc.IsConnError(err) {
52 remotelogs.Debug("ACCESS_LOG_QUEUE", err.Error())
53 } else {
54 remotelogs.Error("ACCESS_LOG_QUEUE", err.Error())
55 }
56 }
57 }
58}
59
60// Push 加入新访问日志
61func (this *HTTPAccessLogQueue) Push(accessLog *pb.HTTPAccessLog) {

Callers

nothing calls this directly

Calls 5

loopMethod · 0.95
IsConnErrorFunction · 0.92
DebugFunction · 0.92
ErrorFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected