上传访问日志发生网络错误时不提交

This commit is contained in:
刘祥超
2022-11-01 14:55:06 +08:00
parent e6e2dccc42
commit 0109a27c06

View File

@@ -43,7 +43,11 @@ func (this *HTTPAccessLogQueue) Start() {
for range ticker.C {
err := this.loop()
if err != nil {
remotelogs.Error("ACCESS_LOG_QUEUE", err.Error())
if rpc.IsConnError(err) {
remotelogs.Debug("ACCESS_LOG_QUEUE", err.Error())
} else {
remotelogs.Error("ACCESS_LOG_QUEUE", err.Error())
}
}
}
}