more logging for Moodle setup
This commit is contained in:
parent
40b0426129
commit
2bc990195e
1 changed files with 5 additions and 1 deletions
|
@ -130,7 +130,8 @@ class MoodleRestTemplateFactory {
|
|||
if (result.hasError()) {
|
||||
log.warn("Failed to get access token for LMS: {}({})",
|
||||
this.lmsSetup.name,
|
||||
this.lmsSetup.id);
|
||||
this.lmsSetup.id,
|
||||
result.getError());
|
||||
}
|
||||
return result;
|
||||
})
|
||||
|
@ -360,6 +361,9 @@ class MoodleRestTemplateFactory {
|
|||
|
||||
if (moodleToken == null || moodleToken.token == null) {
|
||||
throw new RuntimeException("Access Token request with 200 but no or invalid token body");
|
||||
} else {
|
||||
log.info("Successfully get access token from Moodle: {}",
|
||||
MoodleRestTemplateFactory.this.lmsSetup);
|
||||
}
|
||||
|
||||
this.accessToken = moodleToken.token;
|
||||
|
|
Loading…
Reference in a new issue