Start 开始处理访问日志
()
| 44 | |
| 45 | // Start 开始处理访问日志 |
| 46 | func (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 加入新访问日志 |
| 61 | func (this *HTTPAccessLogQueue) Push(accessLog *pb.HTTPAccessLog) { |
nothing calls this directly
no test coverage detected