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