remove prevention of SEB Client event log on none established conn.

This commit is contained in:
anhefti 2019-12-09 12:21:25 +01:00
parent a82838dfd6
commit f38067fdc5

View file

@ -14,7 +14,6 @@ import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.logging.LogLevel;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
@ -34,7 +33,6 @@ import ch.ethz.seb.sebserver.webservice.servicelayer.session.ExamSessionService;
import ch.ethz.seb.sebserver.webservice.servicelayer.session.PingHandlingStrategy;
import ch.ethz.seb.sebserver.webservice.servicelayer.session.SebClientConnectionService;
import ch.ethz.seb.sebserver.webservice.weblayer.api.APIConstraintViolationException;
import ch.ethz.seb.sebserver.webservice.weblayer.api.OnlyMessageLogExceptionWrapper;
@Lazy
@Service
@ -406,12 +404,6 @@ public class SebClientConnectionServiceImpl implements SebClientConnectionServic
if (activeClientConnection != null) {
if (activeClientConnection.clientConnection.status != ConnectionStatus.ESTABLISHED) {
throw new OnlyMessageLogExceptionWrapper(
new IllegalStateException("No established SEB client connection"),
LogLevel.WARN);
}
// store event
this.eventHandlingStrategy.accept(ClientEvent.toRecord(
event,