Selaa lähdekoodia

feat: 检测commit为什么没有userId

ZhengZiHan 2 vuotta sitten
vanhempi
commit
3341dfe1a0

+ 3 - 2
web/src/main/java/cn/seecoder/web/service/impl/commit/CommitLinkServiceImpl.java

@@ -68,7 +68,9 @@ public class CommitLinkServiceImpl implements CommitLinkService {
                 object.put("project_id",projectId);
                 object.put("commit_time",commit.getTimestamp());
                 object.put("message",commit.getMessage());
-            }catch (Exception ignored){}
+            }catch (Exception ignored){
+                log.error("Error occurred while putting values into JSONObject: {}", ignored.getMessage());
+            }
 
 
             log.info("resolving commit id : {}, title : {}, message : {}", commit.getId(), commit.getTitle(), commit.getMessage());
@@ -76,7 +78,6 @@ public class CommitLinkServiceImpl implements CommitLinkService {
             // 应该分析 title 还是 message 与学生的提交规范有关
             CommitRule rule = CommitResolver.resolve(commit.getMessage());
             if (rule == null){
-                log.info("用户id是, user_id: {}",object.get("user_id"));
                 log.info("Commits 不符合规范, id: {}", commit.getId());
                 //ANA
                 try {