Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Loading