增加服务带宽统计

This commit is contained in:
GoEdgeLab
2022-07-05 20:37:00 +08:00
parent 21d85af2fa
commit 8af2a4f63d
15 changed files with 300 additions and 38 deletions

View File

@@ -210,7 +210,7 @@ func (this *Task) Start() error {
var tr = trackers.Begin("[METRIC]UPLOAD_STATS")
err := this.Upload(1 * time.Second)
tr.End()
if err != nil {
if err != nil && !rpc.IsConnError(err) {
remotelogs.Error("METRIC", "upload stats failed: "+err.Error())
}
}