minor shuffle to log messages

This commit is contained in:
kashike
2018-08-12 01:33:39 -07:00
parent 21e72556c9
commit 6a3a5a0458
4 changed files with 13 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
package com.velocitypowered.network;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.velocitypowered.natives.util.Natives;
import com.velocitypowered.proxy.connection.MinecraftConnection;
import com.velocitypowered.proxy.connection.client.HandshakeSessionHandler;
import com.velocitypowered.proxy.protocol.ProtocolConstants;
@@ -68,7 +69,7 @@ public final class ConnectionManager {
}
private void logChannelInformation() {
logger.info("Using channel type {}", transportType);
logger.info("Connections will use {} channels, {} compression, {} ciphers", transportType, Natives.compressor.getLoadedVariant(), Natives.cipher.getLoadedVariant());
}
public void bind(final InetSocketAddress address) {
@@ -168,7 +169,7 @@ public final class ConnectionManager {
KQUEUE(KQueueServerSocketChannel.class, KQueueSocketChannel.class, KQueueDatagramChannel.class) {
@Override
public EventLoopGroup createEventLoopGroup(boolean boss) {
String name = "Netty Kqueue " + (boss ? "Boss" : "Worker") + " #%d";
String name = "Netty KQueue " + (boss ? "Boss" : "Worker") + " #%d";
return new KQueueEventLoopGroup(0, createThreadFactory(name));
}
};

View File

@@ -1,8 +1,12 @@
package com.velocitypowered.proxy;
import com.velocitypowered.proxy.console.VelocityConsole;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Velocity {
private static final Logger logger = LogManager.getLogger(Velocity.class);
static {
// We use BufferedImage for favicons, and on macOS this puts the Java application in the dock. How inconvenient.
// Force AWT to work with its head chopped off.
@@ -10,6 +14,8 @@ public class Velocity {
}
public static void main(String... args) {
logger.info("Booting up Velocity...");
final VelocityServer server = VelocityServer.getServer();
server.start();

View File

@@ -97,11 +97,6 @@ public class VelocityServer implements ProxyServer {
}
public void start() {
logger.info("Using {}", Natives.compressor.getLoadedVariant());
logger.info("Using {}", Natives.cipher.getLoadedVariant());
// Create a key pair
logger.info("Booting up Velocity...");
try {
Path configPath = Paths.get("velocity.toml");
try {