|
@@ -346,7 +346,11 @@ namespace Task
|
|
|
qTempReq.m_timeOut = 5*60;//设置超时时间
|
|
|
//qTempReq.m_printDbg=true;
|
|
|
//调用上传接口
|
|
|
- if(!client->UploadFileBlock(qTempReq,qTempRet)){
|
|
|
+ //最后一次上传时,文件hash和长度告警
|
|
|
+ if (m_fsm->m_currUploadFile->lastMD5Str.length() != 0) {
|
|
|
+ LogWarn(Severity_Low, Error_Unexpect, LOG_WARN_UPLOAD_FILE_INFO, CSimpleStringA::Format("upload %s file size is %s byte,sm3 digest is %s.", m_fsm->m_currUploadFile->fileName.c_str(), lastFileLength.c_str(), m_fsm->m_currUploadFile->lastMD5Str.c_str()).GetData());
|
|
|
+ }
|
|
|
+ if (!client->UploadFileBlock(qTempReq, qTempRet)) {
|
|
|
DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("uploadFile http req fail ,url =%s ,fileName = %s",httpUrl.c_str(), m_fsm->m_currUploadFile->fileName.c_str());
|
|
|
return false;
|
|
|
}
|