mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	上传访问日志发生网络错误时不提交
This commit is contained in:
		@@ -43,10 +43,14 @@ func (this *HTTPAccessLogQueue) Start() {
 | 
			
		||||
	for range ticker.C {
 | 
			
		||||
		err := this.loop()
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			if rpc.IsConnError(err) {
 | 
			
		||||
				remotelogs.Debug("ACCESS_LOG_QUEUE", err.Error())
 | 
			
		||||
			} else {
 | 
			
		||||
				remotelogs.Error("ACCESS_LOG_QUEUE", err.Error())
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Push 加入新访问日志
 | 
			
		||||
func (this *HTTPAccessLogQueue) Push(accessLog *pb.HTTPAccessLog) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user