From 44ee670baf6aab7993ffbb8131d10fc1d1c92f53 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Mon, 28 Apr 2014 16:03:12 +0530 Subject: [PATCH] [AdminConsole] Added starting message logged into console --- .../main/java/mage/server/console/ConsoleFrame.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java b/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java index fe78d2230a..ec7eccf69f 100644 --- a/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java +++ b/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java @@ -34,12 +34,6 @@ package mage.server.console; -import java.util.UUID; -import java.util.prefs.Preferences; -import javax.swing.Box; -import javax.swing.JOptionPane; -import javax.swing.SwingUtilities; -import javax.swing.UIManager; import mage.interfaces.MageClient; import mage.interfaces.callback.ClientCallback; import mage.remote.Connection; @@ -48,6 +42,9 @@ import mage.remote.SessionImpl; import mage.utils.MageVersion; import org.apache.log4j.Logger; +import javax.swing.*; +import java.util.prefs.Preferences; + /** * * @author BetaSteward_at_googlemail.com @@ -201,9 +198,13 @@ public class ConsoleFrame extends javax.swing.JFrame implements MageClient { * @param args the command line arguments */ public static void main(String args[]) { + logger.info("Starting MAGE server console version " + version); + logger.info("Logging level: " + logger.getEffectiveLevel()); + java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new ConsoleFrame().setVisible(true); + logger.info("Started MAGE server console"); } }); }