From 01f158f193d69b034c4cc1b219fc928b2b4e262f Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 27 Jul 2018 10:08:04 -0400 Subject: [PATCH] Yes there's some unneeded qualification in here --- .../java/com/velocitypowered/network/ConnectionManager.java | 2 +- src/main/java/com/velocitypowered/proxy/VelocityServer.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/velocitypowered/network/ConnectionManager.java b/src/main/java/com/velocitypowered/network/ConnectionManager.java index 867bf8e85..5814eb428 100644 --- a/src/main/java/com/velocitypowered/network/ConnectionManager.java +++ b/src/main/java/com/velocitypowered/network/ConnectionManager.java @@ -47,7 +47,7 @@ import static com.velocitypowered.network.Connections.MINECRAFT_ENCODER; import static com.velocitypowered.network.Connections.READ_TIMEOUT; public final class ConnectionManager { - private static final org.apache.logging.log4j.Logger logger = LogManager.getLogger(ConnectionManager.class); + private static final Logger logger = LogManager.getLogger(ConnectionManager.class); private static final String DISABLE_EPOLL_PROPERTY = "velocity.connection.disable-epoll"; private static final boolean DISABLE_EPOLL = Boolean.getBoolean(DISABLE_EPOLL_PROPERTY); diff --git a/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/src/main/java/com/velocitypowered/proxy/VelocityServer.java index 301c77bbf..93ad10196 100644 --- a/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -8,11 +8,14 @@ import com.velocitypowered.proxy.util.EncryptionUtils; import io.netty.bootstrap.Bootstrap; import net.kyori.text.Component; import net.kyori.text.serializer.GsonComponentSerializer; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import java.net.InetSocketAddress; import java.security.KeyPair; public class VelocityServer { + private static final Logger logger = LogManager.getLogger(VelocityServer.class); private static final VelocityServer INSTANCE = new VelocityServer(); public static final Gson GSON = new GsonBuilder() .registerTypeHierarchyAdapter(Component.class, new GsonComponentSerializer()) @@ -35,6 +38,7 @@ public class VelocityServer { public void start() { // Create a key pair + logger.info("Booting up Velocity..."); serverKeyPair = EncryptionUtils.createRsaKeyPair(1024); httpClient = new NettyHttpClient(this);