debugging
This commit is contained in:
parent
a90f358bd5
commit
b1e4f50a1a
1 changed files with 5 additions and 0 deletions
|
@ -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\":")) {
|
||||
|
|
Loading…
Reference in a new issue