mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Added default charset information in startup logs
This commit is contained in:
parent
57dba8c02a
commit
b610d0a31a
3 changed files with 7 additions and 0 deletions
|
@ -67,6 +67,7 @@ import java.awt.image.BufferedImage;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.SocketException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
|
@ -1268,6 +1269,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
|
||||
LOGGER.info("Starting MAGE client version " + VERSION);
|
||||
LOGGER.info("Logging level: " + LOGGER.getEffectiveLevel());
|
||||
LOGGER.info("Default charset: " + Charset.defaultCharset());
|
||||
|
||||
startTime = System.currentTimeMillis();
|
||||
Thread.setDefaultUncaughtExceptionHandler((t, e) -> LOGGER.fatal(null, e));
|
||||
|
|
|
@ -39,6 +39,7 @@ import java.io.File;
|
|||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.net.MalformedURLException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
|
@ -68,6 +69,7 @@ public final class Main {
|
|||
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
|
||||
logger.info("Starting MAGE server version " + version);
|
||||
logger.info("Logging level: " + logger.getEffectiveLevel());
|
||||
logger.info("Default charset: " + Charset.defaultCharset());
|
||||
|
||||
String adminPassword = "";
|
||||
for (String arg : args) {
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.mage.test.player.TestPlayer;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
@ -104,6 +105,8 @@ public abstract class MageTestPlayerBase {
|
|||
Logger.getRootLogger().setLevel(Level.DEBUG);
|
||||
logger.debug("Starting MAGE tests");
|
||||
logger.debug("Logging level: " + logger.getLevel());
|
||||
logger.debug("Default charset: " + Charset.defaultCharset());
|
||||
|
||||
deleteSavedGames();
|
||||
ConfigSettings config = ConfigSettings.instance;
|
||||
for (GamePlugin plugin : config.getGameTypes()) {
|
||||
|
|
Loading…
Reference in a new issue