summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src
diff options
context:
space:
mode:
authorManuel Bentele2021-07-02 15:32:26 +0200
committerManuel Bentele2021-07-02 15:32:26 +0200
commit875a6ead6923394aacfec280791f8d1dac368296 (patch)
treef805893f6d3aa253c2fa489167b6116c6407ebd6 /dozentenmodulserver/src
parent[client] Refactor printing of app information from MANIFEST.MF (diff)
downloadtutor-module-875a6ead6923394aacfec280791f8d1dac368296.tar.gz
tutor-module-875a6ead6923394aacfec280791f8d1dac368296.tar.xz
tutor-module-875a6ead6923394aacfec280791f8d1dac368296.zip
[server] Refactor printing of app information from MANIFEST.MF
Diffstat (limited to 'dozentenmodulserver/src')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java
index 2023d6b8..f41fe666 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java
@@ -34,12 +34,15 @@ import org.openslx.bwlp.thrift.iface.TInvalidTokenException;
import org.openslx.sat.thrift.version.Version;
import org.openslx.thrifthelper.ThriftManager;
import org.openslx.thrifthelper.ThriftManager.ErrorCallback;
+import org.openslx.util.AppUtil;
import org.openslx.util.QuickTimer;
public class App {
private static Logger LOGGER = Logger.getLogger(App.class);
+ private static final String NAME = "bwLehrpool-Server";
+
private static final Set<String> failFastMethods = new HashSet<>();
public static void main(String[] args) throws TTransportException, NoSuchAlgorithmException, IOException,
@@ -49,12 +52,10 @@ public class App {
if (LogManager.getRootLogger().getAllAppenders() == null) {
BasicConfigurator.configure();
}
-
- LOGGER.info("****************************************************************");
- LOGGER.info("******************* Starting Application ***********************");
- LOGGER.info("****************************************************************");
- LOGGER.info("RPC version " + Version.VERSION);
- LOGGER.info("Features: " + SupportedFeatures.getFeatureString());
+
+ AppUtil.logHeader(LOGGER, App.NAME, App.class.getPackage().getImplementationVersion());
+ AppUtil.logProperty(LOGGER, "rpc.version", Long.toString(Version.VERSION));
+ AppUtil.logProperty(LOGGER, "server.features", SupportedFeatures.getFeatureString());
// get Configuration
try {