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 --- .../src/main/java/org/openslx/bwlp/sat/App.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'dozentenmodulserver/src') 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