|
@@ -185,9 +185,10 @@ outLoop:
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
relativePath := strings.Replace(path, commonConfig.CloudConfig.DataDir.Src, "", 1)
|
|
relativePath := strings.Replace(path, commonConfig.CloudConfig.DataDir.Src, "", 1)
|
|
- err = commonConfig.OssBucket.PutObjectFromFile(objectKey3+"data/"+relativePath, path)
|
|
|
|
|
|
+ ossKey := objectKey3 + "data/" + relativePath
|
|
|
|
+ err = commonConfig.OssBucket.PutObjectFromFile(ossKey, path)
|
|
if err != nil {
|
|
if err != nil {
|
|
- c_log.GlobalLogger.Error("上传 data 目录压缩文件失败:", err)
|
|
|
|
|
|
+ c_log.GlobalLogger.Errorf("上传 data 目录内文件【%v】->【%v】失败:%v", path, ossKey, err)
|
|
goto outLoop
|
|
goto outLoop
|
|
}
|
|
}
|
|
}
|
|
}
|