summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManuel Bentele2021-07-02 15:42:32 +0200
committerManuel Bentele2021-07-02 15:42:32 +0200
commit458e99c73bc9f741552014dc5927070553fcc09a (patch)
tree8f06528e7ddf7ab14fb034a96a337a96fd1f7352 /src
parentAdd database test data for debugging purposes (diff)
downloadmasterserver-458e99c73bc9f741552014dc5927070553fcc09a.tar.gz
masterserver-458e99c73bc9f741552014dc5927070553fcc09a.tar.xz
masterserver-458e99c73bc9f741552014dc5927070553fcc09a.zip
Add printing of app information from MANIFEST.MF
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/openslx/imagemaster/App.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/org/openslx/imagemaster/App.java b/src/main/java/org/openslx/imagemaster/App.java
index 6b68770..f9b5399 100644
--- a/src/main/java/org/openslx/imagemaster/App.java
+++ b/src/main/java/org/openslx/imagemaster/App.java
@@ -13,6 +13,7 @@ import org.apache.thrift.transport.TTransportException;
import org.openslx.imagemaster.localrpc.NetworkHandler;
import org.openslx.imagemaster.thrift.server.BinaryListener;
import org.openslx.sat.thrift.version.Version;
+import org.openslx.util.AppUtil;
/**
* The main class that starts all the services.
@@ -22,6 +23,8 @@ public class App
private static Logger log = Logger.getLogger( App.class );
+ private static final String NAME = "Master-Server";
+
private static List<Thread> servers = new ArrayList<>();
public static void main( String[] args ) throws TTransportException, NoSuchAlgorithmException, SocketException
@@ -31,10 +34,8 @@ public class App
BasicConfigurator.configure();
}
- log.info( "****************************************************************" );
- log.info( "******************* Starting Application ***********************" );
- log.info( "****************************************************************" );
- log.info( "RPC version " + Version.VERSION );
+ AppUtil.logHeader( log, App.NAME, App.class.getPackage().getImplementationVersion() );
+ AppUtil.logProperty( log, "rpc.version", Long.toString( Version.VERSION ) );
// Create binary listener
Thread t;