From 7df4fda744ee320483d803d3661a422343d30624 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 21 Apr 2024 03:08:15 +0100 Subject: [PATCH] remove mojang pinger debug --- .../common/renderer/impl/server/ServerPreviewRenderer.java | 1 + src/main/java/xyz/mcutils/backend/service/MojangService.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/xyz/mcutils/backend/common/renderer/impl/server/ServerPreviewRenderer.java b/src/main/java/xyz/mcutils/backend/common/renderer/impl/server/ServerPreviewRenderer.java index 614e83c..6f99ee5 100644 --- a/src/main/java/xyz/mcutils/backend/common/renderer/impl/server/ServerPreviewRenderer.java +++ b/src/main/java/xyz/mcutils/backend/common/renderer/impl/server/ServerPreviewRenderer.java @@ -19,6 +19,7 @@ import java.io.ByteArrayInputStream; public class ServerPreviewRenderer extends Renderer { public static final ServerPreviewRenderer INSTANCE = new ServerPreviewRenderer(); + private static BufferedImage SERVER_BACKGROUND; private static BufferedImage PING_ICON; static { diff --git a/src/main/java/xyz/mcutils/backend/service/MojangService.java b/src/main/java/xyz/mcutils/backend/service/MojangService.java index 98ad0c1..2a46561 100644 --- a/src/main/java/xyz/mcutils/backend/service/MojangService.java +++ b/src/main/java/xyz/mcutils/backend/service/MojangService.java @@ -194,9 +194,7 @@ public class MojangService { try { long start = System.currentTimeMillis(); InetAddress address = InetAddress.getByName(endpoint.getHostname()); - log.info("gotaddr {}, {}", endpoint.getHostname(), (System.currentTimeMillis() - start) + "ms"); if (address.isReachable((int) TimeUnit.SECONDS.toMillis(4))) { // Check if the endpoint is reachable - log.info("isreachable {}, {}", endpoint.getHostname(), (System.currentTimeMillis() - start) + "ms"); endpoint.setStatus(EndpointStatus.Status.ONLINE); return; }