ソースを参照

fix: 添加日志输出

shanshan 2 年 前
コミット
585d689080

+ 3 - 0
web/src/main/java/cn/seecoder/web/service/impl/code_review/BranchReviewServiceImpl.java

@@ -18,6 +18,7 @@ import com.nju.edu.gitlab.SeecoderGitlabApi;
 import com.nju.edu.gitlab.SeecoderGitlabException;
 import com.nju.edu.gitlab.vo.BranchVO;
 import com.nju.edu.gitlab.vo.DiffVO;
+import lombok.extern.slf4j.Slf4j;
 import okhttp3.*;
 import org.gitlab4j.api.GitLabApi;
 import org.gitlab4j.api.GitLabApiException;
@@ -42,6 +43,7 @@ import java.util.stream.Collectors;
  * @description:
  */
 @Service
+@Slf4j
 public class BranchReviewServiceImpl implements BranchReviewService {
     private final BranchReviewMapper branchReviewMapper;
     private final MessageService messageService;
@@ -176,6 +178,7 @@ public class BranchReviewServiceImpl implements BranchReviewService {
 //                "&fromBash="+fromBash+"&toBash="+toBash).build();
 //        Response response = client.newCall(request).execute();
 //        return objectMapper.readTree(response.body().string());
+        log.info("Compare Branch, fromBash : {}, toBash: {}", fromBash, toBash);
         return seecoderGitlabApi.compare(projectId, fromBash, toBash);
     }
 }