Explorar el Código

Log antwoorden van teams

Harry de Boer hace 5 años
padre
commit
d3d39bcb06
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/main/java/puzzeltocht/service/TeamService.java

+ 3 - 0
src/main/java/puzzeltocht/service/TeamService.java

@@ -29,6 +29,9 @@ public class TeamService {
     public Mission updateMission(Event event, Team t, TeamUpdateDto update) {
         if (update != null) {
             t.setCurrentLocation(update.getLocation());
+            if (update.getAnswer() != null) {
+                LOGGER.info("Team {}, {}", t.getName(), update);
+            }
         }
 
         Mission m = t.getCurrentMission();