better logging for lastname bug

This commit is contained in:
Nadim Ritter 2024-07-19 11:34:45 +02:00
parent f4ccd16425
commit 1cb0242507
2 changed files with 16 additions and 0 deletions

View file

@ -403,9 +403,17 @@ public class MoodleCourseAccess implements CourseAccessAPI {
throw new RuntimeException("No user details on Moodle API request");
}
System.out.println("---------------------");
System.out.println("*************it got here moodle course access debugging");
if (log.isDebugEnabled()) {
System.out.println("*************inside if");
log.debug("User details received from Moodle: {}", userDetails[0]);
}
System.out.println("firstname: " + userDetails[0].firstname);
System.out.println("firstname: " + userDetails[0].lastname);
System.out.println("firstname: " + userDetails[0].fullname);
System.out.println(userDetails[0]);
System.out.println("---------------------");
final Map<String, String> additionalAttributes = MoodleUtils.getMoodleAccountDetails(userDetails);
return new ExamineeAccountDetails(

View file

@ -339,9 +339,17 @@ public class MoodlePluginCourseAccess extends AbstractCachedCourseAccess impleme
throw new RuntimeException("No user details on Moodle API request");
}
System.out.println("---------------------");
System.out.println("*************it got here moodle plugin debugging");
if (log.isDebugEnabled()) {
System.out.println("*************inside if");
log.debug("User details received from Moodle: {}", userDetails[0]);
}
System.out.println("firstname: " + userDetails[0].firstname);
System.out.println("firstname: " + userDetails[0].lastname);
System.out.println("firstname: " + userDetails[0].fullname);
System.out.println(userDetails[0]);
System.out.println("---------------------");
final Map<String, String> additionalAttributes = MoodleUtils.getMoodleAccountDetails(userDetails);
return new ExamineeAccountDetails(