xueyiming 1 miesiąc temu
rodzic
commit
67149b5ee6

+ 1 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CrawlerVideoServiceImpl.java

@@ -301,6 +301,7 @@ public class CrawlerVideoServiceImpl {
             String coverPath = VideoDownloader.downloadCover(outVideoId, platform, crawlerVideo.getCoverUrl());
             if (StringUtils.isNotEmpty(videoPath)) {
                 String videoOssPath = OSSUploader.uploadToOSS(videoPath, "video");
+                log.info("OSSUploader.uploadToOSS videoPath={}", videoPath);
                 int uploadOssCount = 0;
                 while (StringUtils.isEmpty(videoOssPath) && uploadOssCount < 3) {
                     log.info("OSSUploader.uploadToOSS videoPath={}", videoPath);

+ 0 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/other/VideoDownloader.java

@@ -111,7 +111,6 @@ public class VideoDownloader {
                 while ((bytesRead = inputStream.read(buffer)) != -1) {
                     size += bytesRead;
                     outputStream.write(buffer, 0, bytesRead);
-                    log.info("download size={}", size);
                 }
                 log.info("download end path={}", path);
                 if (file.length() != 0) {