Browse Source

update loggers

deason 1 year ago
parent
commit
a1afd5d348

+ 2 - 2
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamControlServiceImpl.java

@@ -925,8 +925,8 @@ public class ExamControlServiceImpl implements ExamControlService {
         // 更新考试记录状态
         examRecordDataRepo.updateExamRecordStatusById(examRecordData.getExamRecordStatus(), new Date(), examRecordDataId);
 
-        log.warn("handInExam success! studentId:{}, examRecordDataId:{}, handInExamType:{}, ip:{}, force:{}",
-                studentId, examRecordDataId, handInExamType.name(), ip, force);
+        log.warn("handInExam success! studentId:{}, examRecordDataId:{}, handInExamType:{}, ip:{}, force:{}, fromBy:{}",
+                studentId, examRecordDataId, handInExamType.name(), ip, force, fromBy);
 
         //考试过程记录(交卷)打点
         ReportsUtil.report(new ExamProcessRecordReport(examRecordDataId,

+ 4 - 0
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamRecordQuestionsServiceImpl.java

@@ -305,6 +305,10 @@ public class ExamRecordQuestionsServiceImpl implements ExamRecordQuestionsServic
 
     @Override
     public void submitQuestionAnswer(Long studentId, List<ExamStudentQuestionInfo> examQuestionInfos, String referer, String agent, String ip, String fromBy) {
+        if (log.isInfoEnabled()) {
+            log.info("{} studentId:{} agent:{} referer:{}", fromBy, studentId, agent, referer);
+        }
+
         if (CollectionUtils.isEmpty(examQuestionInfos)) {
             log.warn("submitQuestionAnswer is empty. studentId = {} ", studentId);
             return;