From 7143bd7ed958fcf5dfc74ba5a878ef5a0246b1bb Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 14 Jan 2021 17:39:48 +0100 Subject: [PATCH] fixed logging --- .../lms/impl/moodle/MoodleCourseDataAsyncLoader.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseDataAsyncLoader.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseDataAsyncLoader.java index bd071351..da1f90d0 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseDataAsyncLoader.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseDataAsyncLoader.java @@ -158,6 +158,10 @@ public class MoodleCourseDataAsyncLoader { this.asyncRunner.runAsync(loadAndCache(restTemplate)); this.lastRunTime = Utils.getMillisecondsNow(); + log.info("LMS Setup: {} loaded {} courses asynchronously", + this.lmsSetup, + this.cachedCourseData.size()); + } private Runnable loadAndCache(final MoodleAPIRestTemplate restTemplate) { @@ -169,10 +173,6 @@ public class MoodleCourseDataAsyncLoader { this.lastLoadTime = Utils.getMillisecondsNow() - startTime; this.running = false; - - log.info("LMS Setup: {} loaded {} courses asynchronously", - this.lmsSetup, - this.cachedCourseData.size()); }; }