ehlxr 1 rok temu
rodzic
commit
ca6ef42701

+ 1 - 3
etl-core/src/main/java/com/tzld/crawler/etl/service/impl/EtlServiceImpl.java

@@ -422,9 +422,7 @@ public class EtlServiceImpl implements EtlService {
 
         File file = new File(filePath);
         if (!file.exists() || file.length() <= 0) {
-            String msg = String.format("download file from [%s] is empty.", fileUrl);
-            metric(MetricTypeEnum.DOWNLOAD_FAILED, msg);
-            throw new CommonException(ExceptionEnum.DATA_ERROR, msg);
+            throw new CommonException(ExceptionEnum.DATA_ERROR, String.format("download file from [%s] is empty.", fileUrl));
         }
 
         return relFileDir + File.separator + fileName;