diff --git a/paper-server/patches/sources/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java.patch b/paper-server/patches/sources/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java.patch index 676a614e2231..66a0d90d7e1f 100644 --- a/paper-server/patches/sources/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java.patch +++ b/paper-server/patches/sources/com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java.patch @@ -21,3 +21,20 @@ try { Thread.sleep(DELAY_BETWEEN_PAGES); +@@ -109,7 +_,15 @@ + try { + return Optional.ofNullable(client.get(HttpAuthenticationService.constantURL(nameLookupUrl + normalizeName(name)), NameAndId.class)); + } catch (final MinecraftClientException e) { +- LOGGER.warn("Couldn't find profile with name: {}", name, e); ++ // Paper start - only log details when debug is enabled ++ if (net.minecraft.server.MinecraftServer.getServer().isDebugging() && e instanceof com.mojang.authlib.exceptions.MinecraftClientHttpException httpException) { ++ LOGGER.warn("Couldn't find profile with name: {}. Received status {} - {}", name, httpException.getStatus(), httpException.getMessage(), e); ++ } else if (net.minecraft.server.MinecraftServer.getServer().isDebugging()) { ++ LOGGER.warn("Couldn't find profile with name: {}", name, e); ++ } else { ++ LOGGER.warn("Couldn't find profile with name: {}", name); ++ } ++ // Paper end - only log details when debug is enabled + return Optional.empty(); + } + }