error handling on proc update
This commit is contained in:
parent
230b6edc9f
commit
6b1d5f9179
1 changed files with 12 additions and 10 deletions
|
@ -17,7 +17,6 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import ch.ethz.seb.sebserver.gbl.model.exam.ProctoringSettings;
|
||||
import ch.ethz.seb.sebserver.gbl.model.exam.ProctoringSettings.ProctoringServerType;
|
||||
|
@ -80,8 +79,8 @@ public class ExamProctoringRoomServiceImpl implements ExamProctoringRoomService
|
|||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void updateProctoringCollectingRooms() {
|
||||
try {
|
||||
this.clientConnectionDAO.getAllConnectionIdsForRoomUpdateActive()
|
||||
.getOrThrow()
|
||||
.stream()
|
||||
|
@ -91,6 +90,9 @@ public class ExamProctoringRoomServiceImpl implements ExamProctoringRoomService
|
|||
.getOrThrow()
|
||||
.stream()
|
||||
.forEach(this::removeFromRoom);
|
||||
} catch (final Exception e) {
|
||||
log.error("Unexpected error while trying to update proctoring collecting rooms: ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue