debugging

This commit is contained in:
anhefti 2024-06-04 08:27:18 +02:00
parent a90f358bd5
commit b1e4f50a1a

View file

@ -96,6 +96,11 @@ public class MoodlePluginFullIntegration implements FullLmsIntegrationAPI {
final LmsSetup lmsSetup = this.restTemplateFactory.getApiTemplateDataSupplier().getLmsSetup();
final String jsonPayload = jsonMapper.writeValueAsString(data);
final MoodleAPIRestTemplate rest = getRestTemplate().getOrThrow();
//if (log.isDebugEnabled()) {
log.info("Try to connect to Moodle Plugin 2.0 with: {}", jsonPayload);
//}
final String response = rest.postToMoodleAPIFunction(FUNCTION_NAME_SEBSERVER_CONNECTION, jsonPayload);
if (response != null && response.startsWith("{\"exception\":")) {