This commit is contained in:
邹宗楠
2025-11-10 09:51:45 +08:00
parent ab98ad1cd0
commit d2996db7cf
9 changed files with 221 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ import (
"compress/gzip"
"errors"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"io/ioutil"
"math"
"net"
@@ -173,7 +174,7 @@ func AccessPlatformAPIWithRetry(client *http.Client, handleRequest func() *http.
} else {
bodyData, getDataErr = ioutil.ReadAll(response.Body)
}
globals.SugarLogger.Debugf("%s", utils.Format4Output(time.Now(), false))
if getDataErr != nil {
baseapi.SugarLogger.Errorf("AccessPlatformAPIWithRetry:%s ioutil.ReadAll failed, url:%v, error:%v", trackInfo, request.URL, err)
errLevel = ErrLevelRecoverableErr // 读取数据错误,或数据格式错误认为是偶发情况,重试