From ca1a78f5d577c60d29e17548a6fe8dab31d9b76c Mon Sep 17 00:00:00 2001 From: lorenz <stu203404@mail.uni-kiel.de> Date: Thu, 10 Feb 2022 17:32:56 +0100 Subject: [PATCH] Change exception logging of HistoryServices --- .../main/java/theodolite/uc1/application/HistoryService.java | 5 +---- .../main/java/theodolite/uc2/application/HistoryService.java | 5 +---- .../main/java/theodolite/uc3/application/HistoryService.java | 5 +---- .../main/java/theodolite/uc4/application/HistoryService.java | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/theodolite-benchmarks/uc1-hazelcastjet/src/main/java/theodolite/uc1/application/HistoryService.java b/theodolite-benchmarks/uc1-hazelcastjet/src/main/java/theodolite/uc1/application/HistoryService.java index 3371c6140..655bce27a 100644 --- a/theodolite-benchmarks/uc1-hazelcastjet/src/main/java/theodolite/uc1/application/HistoryService.java +++ b/theodolite-benchmarks/uc1-hazelcastjet/src/main/java/theodolite/uc1/application/HistoryService.java @@ -31,10 +31,7 @@ public class HistoryService { try { uc1HistoryService.run(); } catch (final Exception e) { // NOPMD - e.printStackTrace(); // NOPMD - LOGGER.error("An Exception occured. "// NOPMD - + "No history service is deployed! ABORT MISSION!"); - LOGGER.error(e.toString()); + LOGGER.error("ABORT MISSION!: {}", e); } } diff --git a/theodolite-benchmarks/uc2-hazelcastjet/src/main/java/theodolite/uc2/application/HistoryService.java b/theodolite-benchmarks/uc2-hazelcastjet/src/main/java/theodolite/uc2/application/HistoryService.java index fad3cca6c..f099b7e43 100644 --- a/theodolite-benchmarks/uc2-hazelcastjet/src/main/java/theodolite/uc2/application/HistoryService.java +++ b/theodolite-benchmarks/uc2-hazelcastjet/src/main/java/theodolite/uc2/application/HistoryService.java @@ -30,10 +30,7 @@ public class HistoryService { try { uc2HistoryService.run(); } catch (final Exception e) { // NOPMD - e.printStackTrace(); // NOPMD - LOGGER.error("An Exception occured. "// NOPMD - + "No history service is deployed! ABORT MISSION!"); - LOGGER.error(e.toString()); + LOGGER.error("ABORT MISSION!: {}", e); } } diff --git a/theodolite-benchmarks/uc3-hazelcastjet/src/main/java/theodolite/uc3/application/HistoryService.java b/theodolite-benchmarks/uc3-hazelcastjet/src/main/java/theodolite/uc3/application/HistoryService.java index 9b5435f06..a9f2d0833 100644 --- a/theodolite-benchmarks/uc3-hazelcastjet/src/main/java/theodolite/uc3/application/HistoryService.java +++ b/theodolite-benchmarks/uc3-hazelcastjet/src/main/java/theodolite/uc3/application/HistoryService.java @@ -32,10 +32,7 @@ public class HistoryService { try { uc3HistoryService.run(); } catch (final Exception e) { // NOPMD - e.printStackTrace(); // NOPMD - LOGGER.error("An Exception occured. "// NOPMD - + "No history service is deployed! ABORT MISSION!"); - LOGGER.error(e.toString()); + LOGGER.error("ABORT MISSION!: {}", e); } } diff --git a/theodolite-benchmarks/uc4-hazelcastjet/src/main/java/theodolite/uc4/application/HistoryService.java b/theodolite-benchmarks/uc4-hazelcastjet/src/main/java/theodolite/uc4/application/HistoryService.java index 3b0dbbbe0..00f3eb748 100644 --- a/theodolite-benchmarks/uc4-hazelcastjet/src/main/java/theodolite/uc4/application/HistoryService.java +++ b/theodolite-benchmarks/uc4-hazelcastjet/src/main/java/theodolite/uc4/application/HistoryService.java @@ -33,10 +33,7 @@ public class HistoryService { try { uc4HistoryService.run(); } catch (final Exception e) { // NOPMD - e.printStackTrace(); // NOPMD - LOGGER.error("An Exception occured. "// NOPMD - + "No history service is deployed! ABORT MISSION!"); - LOGGER.error(e.toString()); + LOGGER.error("ABORT MISSION!: {}", e); } } -- GitLab