summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;