Kaynağa Gözat

去掉无用日志

dsx 2 yıl önce
ebeveyn
işleme
8301937b08

+ 1 - 1
4dkankan-utils-fyun-oss/src/main/java/com/fdkankan/fyun/oss/OssFileService.java

@@ -183,7 +183,7 @@ public class OssFileService extends AbstractFYunFileService {
         try {
             List<String> files = listRemoteFiles(sourceBucketName, sourcePath);
             if (ObjectUtils.isEmpty(files)) {
-                log.error("源文件夹为空:{}", sourcePath);
+                return;
             }
             files.stream().forEach(file -> {
                 ossClient.copyObject(sourceBucketName, file, targetBucketName, file.replace(sourcePath, targetPath));

+ 1 - 1
4dkankan-utils-fyun-s3/src/main/java/com/fdkankan/fyun/s3/S3FileService.java

@@ -211,7 +211,7 @@ public class S3FileService extends AbstractFYunFileService {
         try {
             List<String> files = listRemoteFiles(sourceBucketName, sourcePath);
             if (ObjectUtils.isEmpty(files)) {
-                log.error("源文件夹为空:{}", sourcePath);
+                return;
             }
             files.stream().forEach(file -> {
 				CopyObjectRequest request = new CopyObjectRequest(sourceBucketName, file, targetBucketName, file.replace(sourcePath, targetPath));