Browse Source

fix: 日志

xuxiaopang 2 years ago
parent
commit
b29b43e783

+ 2 - 1
seecoder-portal-server/src/main/java/cn/seecoder/seecoderportalserver/serviceImpl/ProjectServiceImpl.java

@@ -149,11 +149,12 @@ public class ProjectServiceImpl implements ProjectService {
         CourseProject courseProject = courseProjectRepository.findById(projectId)
                 .orElseThrow(CustomErrorException::courseProjectNotFound);
         if (!courseProject.getPublic()) {throw CustomErrorException.courseSelectionNotFound();}
-        log.info("PROJECT VISIBILITY: {}", devcloudService.getProjectVisibility(projectId));
+        //log.info("PROJECT VISIBILITY: {}", devcloudService.getProjectVisibility(projectId));
         // 验证当前用户已选课
         if (!courseService.checkSelection(SecurityUtils.getCurrentUser().getId(), courseProject.getCourse().getId())) {
             throw CustomErrorException.unauthorizedUser();
         }
+        log.info("ready to fork");
         JSONObject devcloudResult = devcloudService.forkProject(projectId, name);
         log.info("devcloudService.forkProject: {}", devcloudResult);
         CourseProject forkCourseProject = new CourseProject();