diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/AbstractCourseAccess.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/AbstractCourseAccess.java index b663ae96..c1bc7ffe 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/AbstractCourseAccess.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/AbstractCourseAccess.java @@ -143,7 +143,14 @@ public abstract class AbstractCourseAccess { public Result getExamineeAccountDetails(final String examineeSessionId) { final Supplier accountDetailsSupplier = accountDetailsSupplier(examineeSessionId); - return this.accountDetailRequest.protectedRun(accountDetailsSupplier); + return this.accountDetailRequest.protectedRun(() -> { + try { + return accountDetailsSupplier.get(); + } catch (final Exception e) { + log.error("Unexpected error while trying to get examinee account details: ", e); + throw e; + } + }); } /** Default implementation that uses getExamineeAccountDetails to geht the examinee name diff --git a/src/main/resources/config/application.properties b/src/main/resources/config/application.properties index aa543423..2f6bd64a 100644 --- a/src/main/resources/config/application.properties +++ b/src/main/resources/config/application.properties @@ -35,6 +35,7 @@ logging.level.ch=INFO # logging.file=/sebserver/log/sebserver.log ### spring actuator configuration +management.endpoints.jmx.exposure.include=metrics,logfile,loggers,heapdump,health management.endpoints.web.base-path=/mprofile management.endpoints.web.exposure.include=metrics,logfile,loggers,heapdump,health