diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleRestTemplateFactoryImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleRestTemplateFactoryImpl.java index 5a2207f6..1ad3f02c 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleRestTemplateFactoryImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleRestTemplateFactoryImpl.java @@ -448,6 +448,8 @@ public class MoodleRestTemplateFactoryImpl implements MoodleRestTemplateFactory } }); + log.info("Upload to Moodle url: {}", uri.toString()); + return super.postForObject( uri.toString(), multiPartAttributes, @@ -470,7 +472,7 @@ public class MoodleRestTemplateFactoryImpl implements MoodleRestTemplateFactory if (response.getStatusCode() != HttpStatus.OK) { throw new RuntimeException( "Failed to call Moodle webservice API function: " + functionName + " lms setup: " + - lmsSetup + " response: " + response.getBody()); + lmsSetup.name + " response: " + response.getBody()); } final String body = response.getBody(); @@ -488,7 +490,7 @@ public class MoodleRestTemplateFactoryImpl implements MoodleRestTemplateFactory this.accessToken = null; log.warn( "Failed to call Moodle webservice API function: {} lms setup: {} response: {}", - functionName, lmsSetup, body); + functionName, lmsSetup.name, body); } return body; diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java index 8c3e2d41..b2808eaf 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java @@ -295,7 +295,7 @@ public class ScreenProctoringServiceImpl implements ScreenProctoringService { @Override public void notifyExamStarted(final ExamStartedEvent event) { final Exam exam = event.exam; - if (!BooleanUtils.toBoolean(exam.additionalAttributes.get(SPSData.ATTR_SPS_ACTIVE))) { + if (BooleanUtils.toBoolean(exam.additionalAttributes.get(SPSData.ATTR_SPS_ACTIVE))) { return; }