From 1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39 Mon Sep 17 00:00:00 2001
From: Felix Kehrer <felix.kehrer@gmail.com>
Date: Fri, 15 Jun 2018 13:20:30 +0200
Subject: Added logging to all caught Exceptions #27033
---
.../einsatzverwaltung/controller/ArchiveOperationController.java | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'src/main/java/at/ac/tuwien/sepm/assignment/groupphase')
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!");
--
cgit v1.2.3-70-g09d2