From 875a6ead6923394aacfec280791f8d1dac368296 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 2 Jul 2021 15:32:26 +0200 Subject: [server] Refactor printing of app information from MANIFEST.MF --- dozentenmodulserver/pom.xml | 13 +++++++------ .../src/main/java/org/openslx/bwlp/sat/App.java | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'dozentenmodulserver') diff --git a/dozentenmodulserver/pom.xml b/dozentenmodulserver/pom.xml index 15c297e9..28ad80b6 100644 --- a/dozentenmodulserver/pom.xml +++ b/dozentenmodulserver/pom.xml @@ -16,7 +16,6 @@ UTF-8 org.openslx.bwlp.sat.App - yyyy.MM.dd HH:mm bwlp-masterserver.ruf.uni-freiburg.de 9091 true @@ -124,14 +123,16 @@ package create - create-timestamp false false - revision.timestamp + UTC + build.time + revision.branch + revision.version @@ -175,9 +176,9 @@ true - ${maven.build.timestamp} - ${buildNumber} - ${revision.timestamp} + ${build.time} + ${revision.branch} + ${revision.version} 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 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 { -- cgit v1.2.3-55-g7522