aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Kehrer <felix.kehrer@gmail.com>2018-06-15 13:20:30 +0200
committerTharre <tharre3@gmail.com>2018-06-16 17:39:48 +0200
commit1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39 (patch)
tree23cce8bccce3cac15220bc9510b7289376a4eaa7
parent5446cc6b355eaf8838ebc3a8ba2f4a01fa9058d4 (diff)
downloadsepm-groupproject-1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39.tar.gz
sepm-groupproject-1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39.tar.xz
sepm-groupproject-1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39.zip
Added logging to all caught Exceptions #27033
-rw-r--r--src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java
index 5e89b66..74f9f57 100644
--- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java
+++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java
@@ -25,11 +25,15 @@ import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.FlowPane;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
@Controller
public class ArchiveOperationController {
+ private static final Logger LOG = LoggerFactory.getLogger(ArchiveOperationController.class);
+
@FXML private ImageView imvVehicleDetail;
@FXML private Label lblStatus;
@FXML private AnchorPane apMainDetails;
@@ -81,6 +85,7 @@ public class ArchiveOperationController {
lblCompleted.setText("abgeschlossen: " + completedAmount);
lblOperations.setText("Einsätze: " + list.size());
} catch (ServiceException e) {
+ LOG.error("ServiceException in update().", e);
Alert alert = new Alert(AlertType.ERROR);
alert.setTitle("Fehler");
alert.setHeaderText("Fehler!");
@@ -112,6 +117,7 @@ public class ArchiveOperationController {
archiveOperationFlowPane.getChildren().add(opInAController.getRoot());
}
} catch (IOException e) {
+ LOG.error("IOException in setFlowPane(). ", e);
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("Fehler");
alert.setHeaderText("Fehler!");
@@ -182,6 +188,7 @@ public class ArchiveOperationController {
fpVehicles.getChildren().add(controller.getRoot());
}
} catch (IOException e) {
+ LOG.error("IOException in setOperation(). ", e);
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("Fehler");
alert.setHeaderText("Fehler!");