1
This commit is contained in:
@@ -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 // 读取数据错误,或数据格式错误认为是偶发情况,重试
|
||||
|
||||
Reference in New Issue
Block a user