diff options
author | Simon Rettberg | 2017-07-31 17:13:37 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-07-31 17:13:37 +0200 |
commit | baa2514d682d1c41da86f1c3cc34bd4fc132c8c5 (patch) | |
tree | 724057efa4cb1103dd9a29153cef257b43f8de6a /dozentenmodul/src/main/java/org/openslx/dozmod/App.java | |
parent | [client] Try thrift and https to master before deciding to skip proxy setup (diff) | |
download | tutor-module-baa2514d682d1c41da86f1c3cc34bd4fc132c8c5.tar.gz tutor-module-baa2514d682d1c41da86f1c3cc34bd4fc132c8c5.tar.xz tutor-module-baa2514d682d1c41da86f1c3cc34bd4fc132c8c5.zip |
[client] Log detailed runtime information on app startup
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/App.java')
-rwxr-xr-x | dozentenmodul/src/main/java/org/openslx/dozmod/App.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java index c2098491..292725c8 100755 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java @@ -29,6 +29,7 @@ import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.MainWindow; import org.openslx.dozmod.gui.helper.MessageType; import org.openslx.dozmod.util.ClientVersion; +import org.openslx.dozmod.util.FormatHelper; import org.openslx.dozmod.util.ProxyConfigurator; import org.openslx.thrifthelper.ThriftManager; import org.openslx.util.Util; @@ -100,6 +101,9 @@ public class App { @Override protected void append(LoggingEvent event) { + // TODO Set up filtering properly + if ("org.apache.http.wire".equals(event.getLoggerName())) + return; String s = event.getRenderedMessage(); if (s.contains("uthorization")) { Matcher m = re.matcher(s); @@ -115,7 +119,16 @@ public class App { }; BasicConfigurator.configure(ap); - LOGGER.info("Starting logging to: " + logFilePath); + LOGGER.info("Starting logging to: " + logFilePath); + LOGGER.info("bwLehrpool-Suite Version: " + ClientVersion.getLocalRevision()); + LOGGER.info(" " + FormatHelper.longDate(ClientVersion.getLocalRevTimestamp())); + LOGGER.info("os.name: " + System.getProperty("os.name")); + LOGGER.info("java.specification.vendor: " + System.getProperty("java.specification.vendor")); + LOGGER.info("java.specification.name: " + System.getProperty("java.specification.name")); + LOGGER.info("java.specification.version: " + System.getProperty("java.specification.version")); + LOGGER.info("java.version: " + System.getProperty("java.version")); + LOGGER.info("java.vm.version: " + System.getProperty("java.vm.version")); + LOGGER.info("java.runtime.version: " + System.getProperty("java.runtime.version")); } public static void main(final String[] args) throws InvocationTargetException, InterruptedException { |