From 65641d1006c80ee015edeb72ab78de7d9cde67c7 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Fri, 29 Aug 2025 13:32:10 -0700 Subject: [PATCH] Only log name instead of full profile for configuration phase disconnects (#13038) --- .../ServerConfigurationPacketListenerImpl.java.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/paper-server/patches/sources/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java.patch b/paper-server/patches/sources/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java.patch index 1d0349772..fa453a5be 100644 --- a/paper-server/patches/sources/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java.patch +++ b/paper-server/patches/sources/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java.patch @@ -28,18 +28,20 @@ @Override protected GameProfile playerProfile() { -@@ -61,6 +_,11 @@ +@@ -61,7 +_,12 @@ @Override public void onDisconnect(DisconnectionDetails details) { +- LOGGER.info("{} lost connection: {}", this.gameProfile, details.reason().getString()); + // Paper start - Debugging + if (this.server.isDebugging()) { -+ ServerConfigurationPacketListenerImpl.LOGGER.info("{} lost connection: {}, while in configuration phase {}", this.gameProfile, details.reason().getString(), this.currentTask != null ? this.currentTask.type().id() : "null"); ++ ServerConfigurationPacketListenerImpl.LOGGER.info("{} lost connection: {}, while in configuration phase {}", this.gameProfile.getName(), details.reason().getString(), this.currentTask != null ? this.currentTask.type().id() : "null"); + } else + // Paper end - LOGGER.info("{} lost connection: {}", this.gameProfile, details.reason().getString()); ++ LOGGER.info("{} lost connection: {}", this.gameProfile.getName(), details.reason().getString()); // Paper - log name instead of whole profile (as with other similar messages) super.onDisconnect(details); } + @@ -71,10 +_,15 @@ }