From 5b8017e403098061d19d50edd7f88000e6cb481a Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 19 Apr 2024 18:06:04 +0100 Subject: [PATCH] add debug --- src/main/java/xyz/mcutils/backend/service/MojangService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/xyz/mcutils/backend/service/MojangService.java b/src/main/java/xyz/mcutils/backend/service/MojangService.java index 70e6956..5a39411 100644 --- a/src/main/java/xyz/mcutils/backend/service/MojangService.java +++ b/src/main/java/xyz/mcutils/backend/service/MojangService.java @@ -195,7 +195,9 @@ public class MojangService { try { long start = System.currentTimeMillis(); InetAddress address = InetAddress.getByName(endpoint.getHostname()); + System.out.printf("inataddr %s, %s%n", endpoint.getHostname(), (System.currentTimeMillis() - start) + "ms"); if (address.isReachable((int) TimeUnit.SECONDS.toMillis(4))) { // Check if the endpoint is reachable + System.out.printf("isreachable %s, %s%n", endpoint.getHostname(), (System.currentTimeMillis() - start) + "ms"); endpoint.setStatus(EndpointStatus.Status.ONLINE); return; }