diff options
| author | Felix Kehrer <felix.kehrer@gmail.com> | 2018-06-15 14:40:06 +0200 | 
|---|---|---|
| committer | Tharre <tharre3@gmail.com> | 2018-06-16 17:39:48 +0200 | 
| commit | f2a2885d7534f283f4999a32c7ccaadae55a419a (patch) | |
| tree | 7dcb4e3c2c96bcb2c1a6be68870215028c1d40f9 /src/main/java/at | |
| parent | 2e555feddd334f4ed29179330b19458960b35b9b (diff) | |
| download | sepm-groupproject-f2a2885d7534f283f4999a32c7ccaadae55a419a.tar.gz sepm-groupproject-f2a2885d7534f283f4999a32c7ccaadae55a419a.tar.xz sepm-groupproject-f2a2885d7534f283f4999a32c7ccaadae55a419a.zip  | |
Added logging to caught Exceptions #27033
Diffstat (limited to 'src/main/java/at')
| -rw-r--r-- | src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/OperationDetailsController.java | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/OperationDetailsController.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/OperationDetailsController.java index dc7e969..a32c5ac 100644 --- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/OperationDetailsController.java +++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/OperationDetailsController.java @@ -19,10 +19,13 @@ import javafx.scene.control.Label;  import javafx.scene.control.ListCell;  import javafx.scene.control.ListView;  import javafx.scene.layout.AnchorPane; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory;  import org.springframework.stereotype.Controller;  @Controller  public class OperationDetailsController { +    private static final Logger LOG = LoggerFactory.getLogger(OperationDetailsController.class);      public Operation operation;      private final OperationService operationService; @@ -106,6 +109,7 @@ public class OperationDetailsController {                      FXCollections.observableArrayList(                              operationService.list(EnumSet.of(Status.ACTIVE))));          } catch (ServiceException e) { +            LOG.error("ServiceException in fillActiveList(). ", e);              Alert alert = new Alert(AlertType.ERROR);              alert.setTitle("Fehler");              alert.setHeaderText("Fehler!"); @@ -119,6 +123,7 @@ public class OperationDetailsController {          try {              operationService.complete(operation.id(), Status.COMPLETED);          } catch (InvalidOperationException | ServiceException e) { +            LOG.error("Exception in closeOperationClicked(). ", e);              Alert alert = new Alert(AlertType.ERROR);              alert.setTitle("Fehler");              alert.setHeaderText("Fehler!"); @@ -139,6 +144,7 @@ public class OperationDetailsController {          try {              operationService.complete(operation.id(), Status.CANCELLED);          } catch (InvalidOperationException | ServiceException e) { +            LOG.error("Exception in cancelOperationClicked(). ", e);              Alert alert = new Alert(AlertType.ERROR);              alert.setTitle("Fehler");              alert.setHeaderText("Fehler!");  | 
