From 8b2805fcf17dbc672e78cc9650ff8e2df5a86fdd Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sun, 6 Jun 2021 03:48:40 +0200 Subject: [PATCH] feat: improved Server mainclass --- .../main/java/uulm/teamname/marvelous/server/Server.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/Server.java b/Server/src/main/java/uulm/teamname/marvelous/server/Server.java index d68a0c2..76700ff 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/Server.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/Server.java @@ -12,6 +12,7 @@ import uulm.teamname.marvelous.gamelibrary.json.JSON; import uulm.teamname.marvelous.gamelibrary.json.ValidationUtility; import uulm.teamname.marvelous.server.args.ServerArgs; import uulm.teamname.marvelous.server.netconnector.MarvelousServer; +import uulm.teamname.marvelous.server.netconnector.UserManager; import java.io.*; import java.net.InetSocketAddress; @@ -74,12 +75,13 @@ public class Server { InetSocketAddress address = new InetSocketAddress(serverArgs.getPort()); Logger.trace("Inet address {} created", address); + Logger.trace("Instantiating MarvelousServer..."); MarvelousServer netConnector = new MarvelousServer(address); - System.out.println("Starting server"); + + Logger.trace("Starting MarvelousServer..."); netConnector.start(); - System.out.println("Server started"); - + Logger.trace("End of Main reached. Exiting main thread."); } /** Function that sets the log level for {@link Logger Tinylog}.