summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/App.java
diff options
context:
space:
mode:
authorJonathan Bauer2018-04-16 17:45:59 +0200
committerJonathan Bauer2018-04-16 17:45:59 +0200
commit4dbc9d8668df4fc0c4ff10b3f642c63949bd0ab7 (patch)
tree9594a98ffad80ee70287e0345dd9f71e2b7d2fd5 /dozentenmodul/src/main/java/org/openslx/dozmod/App.java
parent[client] Minor cleanups, add/remove TODOs, rename vars, ... (diff)
downloadtutor-module-4dbc9d8668df4fc0c4ff10b3f642c63949bd0ab7.tar.gz
tutor-module-4dbc9d8668df4fc0c4ff10b3f642c63949bd0ab7.tar.xz
tutor-module-4dbc9d8668df4fc0c4ff10b3f642c63949bd0ab7.zip
[client] add error message for humans
to stock printStackTraces()
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/App.java')
-rwxr-xr-xdozentenmodul/src/main/java/org/openslx/dozmod/App.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java
index e326cce3..8e971eaa 100755
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java
@@ -81,7 +81,7 @@ public class App {
fa.setEncoding("UTF-8");
// All classes should log to file, configure global file appender.
} catch (IOException e) {
- e.printStackTrace();
+ LOGGER.error("Failed to set logfile path to '" + logFilePath + "': ", e);
BasicConfigurator.configure();
return;
}
@@ -260,7 +260,7 @@ public class App {
try {
ClientVersion.createJson(destination);
} catch (IOException e) {
- e.printStackTrace();
+ LOGGER.error("Failed to write JSON update file to '" + destination + "': ", e);
}
}