diff --git a/src/main/java/od/providers/events/openlrs/OpenLRSEventProvider.java b/src/main/java/od/providers/events/openlrs/OpenLRSEventProvider.java index 9f65d09..18a2d5c 100644 --- a/src/main/java/od/providers/events/openlrs/OpenLRSEventProvider.java +++ b/src/main/java/od/providers/events/openlrs/OpenLRSEventProvider.java @@ -231,12 +231,15 @@ public JsonNode postEvent(JsonNode marshallableObject, ProviderOptions options) @Override public EventStats getEventStatsForCourse(ProviderOptions options) { - + RestTemplate restTemplate = new RestTemplate(); String fullCourseId = options.getCourseId(); if (StringUtils.isNotEmpty(lrs_Options.getGroup_id_prependString())) { + log.debug("lrs_options group_id_prependString = " + lrs_Options.getGroup_id_prependString()); fullCourseId = lrs_Options.getGroup_id_prependString() + fullCourseId; + } else { + log.debug("lrs_options group_id_prependString is empty, Sakai users should set this value"); } //set interceptors/requestFactory diff --git a/src/main/java/od/utils/LRS_Options.java b/src/main/java/od/utils/LRS_Options.java index 626b17b..0ac0345 100644 --- a/src/main/java/od/utils/LRS_Options.java +++ b/src/main/java/od/utils/LRS_Options.java @@ -4,13 +4,13 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.test.ConfigFileApplicationContextInitializer; import org.springframework.context.annotation.Configuration; -import org.springframework.test.context.ContextConfiguration; +//import org.springframework.test.context.ContextConfiguration; @Configuration @EnableConfigurationProperties @ConfigurationProperties(prefix="lrs_options") //@PropertySource(value = "classpath:application.yml") -@ContextConfiguration(initializers = ConfigFileApplicationContextInitializer.class) +//@ContextConfiguration(initializers = ConfigFileApplicationContextInitializer.class) public class LRS_Options { private String group_id_prependString;