wangyunpeng 11 saat önce
ebeveyn
işleme
1896fec32d

+ 3 - 3
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -171,7 +171,7 @@ public class CoreServiceImpl implements CoreService {
                     break;
                 }
             } catch (Exception e) {
-                log.error("initPlanAccount error, retryCount: {}", retryCount, e.getMessage());
+                log.error("initPlanAccount error, retryCount: {}, errorMsg:{}", retryCount, e.getMessage());
             }
             retryCount++;
         }
@@ -454,7 +454,7 @@ public class CoreServiceImpl implements CoreService {
                                 }
                             }
                         } catch (InterruptedException e) {
-                            log.error("匹配小程序线程异常", e.getMessage());
+                            log.error("匹配小程序线程异常, errorMsg:{}", e.getMessage());
                         }
                     }
                     log.info("启动匹配小程序线程结束");
@@ -673,7 +673,7 @@ public class CoreServiceImpl implements CoreService {
                             }
                             operatePlanAccount(planAccount);
                         } catch (Exception e) {
-                            log.error("", e.getMessage());
+                            log.error("核心操作线程异常: {}", e.getMessage(), e);
                         }
                     }
                     log.info("核心操作线程结束");

+ 4 - 4
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/NewMatchVideoServiceImpl.java

@@ -132,7 +132,7 @@ public class NewMatchVideoServiceImpl implements NewMatchVideoService {
         try {
             newMatchVideoMapper.updateByPrimaryKeySelective(video);
         } catch (Exception e) {
-            log.error("Failed to update video status for ID: {} {}", video.getContentId(), e.getMessage());
+            log.error("Failed to update video status for ID: {} , errorMsg:{}", video.getContentId(), e.getMessage());
         }
     }
 
@@ -165,7 +165,7 @@ public class NewMatchVideoServiceImpl implements NewMatchVideoService {
         try {
             updateSuccess = kimiService.updateKimiContent(newMatchVideo.getContentId());
         } catch (Exception e) {
-            log.error("Failed to update Kimi content for ID: {} {}", newMatchVideo.getContentId(), e.getMessage());
+            log.error("Failed to update Kimi content for ID: {} , errorMsg:{}", newMatchVideo.getContentId(), e.getMessage());
         }
 
         updateVideoStatus(newMatchVideo, updateSuccess,
@@ -181,7 +181,7 @@ public class NewMatchVideoServiceImpl implements NewMatchVideoService {
             updateSuccess = crawlerVideoService.addCrawlerVideo(newMatchVideo.getContentId(),
                     newMatchVideo.getVideoPoolTraceId(), newMatchVideo.getPqVideoId(), rootContentId, kimiText);
         } catch (Exception e) {
-            log.error("Failed to crawler match video content for ID: {} {}", newMatchVideo.getContentId(), e.getMessage());
+            log.error("Failed to crawler match video content for ID: {} , errorMsg:{}", newMatchVideo.getContentId(), e.getMessage());
         }
 
         updateVideoStatus(newMatchVideo, updateSuccess,
@@ -194,7 +194,7 @@ public class NewMatchVideoServiceImpl implements NewMatchVideoService {
         try {
             updateSuccess = crawlerVideoService.uploadCrawlerVideo(newMatchVideo.getContentId(), newMatchVideo.getFlowPoolLevel());
         } catch (Exception e) {
-            log.error("Failed to upload crawler video content for ID: {} {}", newMatchVideo.getContentId(), e.getMessage());
+            log.error("Failed to upload crawler video content for ID: {} , errorMsg:{}", newMatchVideo.getContentId(), e.getMessage());
         }
 
         updateVideoStatus(newMatchVideo, updateSuccess,

+ 4 - 4
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/remote/impl/ManagerApiServiceImpl.java

@@ -32,7 +32,7 @@ public class ManagerApiServiceImpl implements ManagerApiService {
             String post = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(url, param.toJSONString());
             res = JSONObject.parseObject(post);
         } catch (Exception e) {
-            log.error("ManagerApiService videoMultiTitleSave error, videoId={} title={}  {}",
+            log.error("ManagerApiService videoMultiTitleSave error, videoId={} title={} , errorMsg:{}",
                     videoId, title, e.getMessage());
         }
         if (Objects.isNull(res)) {
@@ -57,7 +57,7 @@ public class ManagerApiServiceImpl implements ManagerApiService {
             String post = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(url, param.toJSONString());
             res = JSONObject.parseObject(post);
         } catch (Exception e) {
-            log.error("ManagerApiService videoMultiCoverSave error, videoId={} coverUrl={} {}",
+            log.error("ManagerApiService videoMultiCoverSave error, videoId={} coverUrl={}, errorMsg:{}",
                     videoId, coverUrl, e.getMessage());
         }
         if (Objects.isNull(res)) {
@@ -81,7 +81,7 @@ public class ManagerApiServiceImpl implements ManagerApiService {
             String post = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(url, param.toJSONString());
             res = JSONObject.parseObject(post);
         } catch (Exception e) {
-            log.error("ManagerApiService videoMultiCoverListV2 error, videoId={} range={} {}",
+            log.error("ManagerApiService videoMultiCoverListV2 error, videoId={} range={}, errorMsg:{}",
                     videoId, "2h", e.getMessage());
         }
         if (Objects.isNull(res)) {
@@ -105,7 +105,7 @@ public class ManagerApiServiceImpl implements ManagerApiService {
             String post = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(url, param.toJSONString());
             res = JSONObject.parseObject(post);
         } catch (Exception e) {
-            log.error("ManagerApiService videoMultiCoverListV2 error, videoId={} range={} {}",
+            log.error("ManagerApiService videoMultiCoverListV2 error, videoId={} range={} , errorMsg:{}",
                     videoId, "4h", e.getMessage());
         }
         if (Objects.isNull(res)) {

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/remote/impl/SortServiceImpl.java

@@ -32,7 +32,7 @@ public class SortServiceImpl implements SortService {
                 response.setSuccessful(true);
             }
         } catch (Exception e) {
-            log.error("publishArticleSort recommend response parseObject {}", e.getMessage());
+            log.error("publishArticleSort recommend response parseObject , errorMsg:{}", e.getMessage());
         }
         long endTime = System.currentTimeMillis();
         log.info("publishArticleSort request={} needTime={}", request, endTime - startTime);