diff --git a/src/main/java/net/frozenorb/apiv3/util/MaxMindUtils.java b/src/main/java/net/frozenorb/apiv3/util/MaxMindUtils.java index 13bb63f..b13e339 100644 --- a/src/main/java/net/frozenorb/apiv3/util/MaxMindUtils.java +++ b/src/main/java/net/frozenorb/apiv3/util/MaxMindUtils.java @@ -8,13 +8,11 @@ import io.vertx.core.http.HttpClient; import io.vertx.core.http.HttpClientOptions; import io.vertx.core.json.JsonObject; import lombok.experimental.UtilityClass; -import lombok.extern.slf4j.Slf4j; import net.frozenorb.apiv3.APIv3; import net.frozenorb.apiv3.maxmind.MaxMindResult; import java.util.Base64; -@Slf4j @UtilityClass public class MaxMindUtils { @@ -53,8 +51,6 @@ public class MaxMindUtils { }); response.exceptionHandler((error) -> { - log.error("Got failure from MaxMind (" + ip + ")"); - // we have to check !failed because the circuit breaker's timeout will mark us as failed already if (!future.failed()) { future.fail(error); @@ -63,10 +59,7 @@ public class MaxMindUtils { }) .putHeader("Authorization", authHeader) .end(); - }, (ignored) -> { - log.error("Defaulting to failed MaxMind response (open breaker) (" + ip + ")"); - return null; - }).setHandler((result) -> { // The (ignored) -> null section is our fallback, which just returns null (when the breaker is open) + }, (ignored) -> null).setHandler((result) -> { // The (ignored) -> null section is our fallback, which just returns null (when the breaker is open) if (result.failed()) { callback.onResult(null, result.cause()); } else {