From 32b28a4ca5679607580fb2e3f2677f1464d77bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Wed, 15 Jul 2020 22:42:58 +0200 Subject: [PATCH] Turn all UUID messages into debug messages --- .../com/plotsquared/core/uuid/UUIDPipeline.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/uuid/UUIDPipeline.java b/Core/src/main/java/com/plotsquared/core/uuid/UUIDPipeline.java index 997cdfdc1..9ca6e783a 100644 --- a/Core/src/main/java/com/plotsquared/core/uuid/UUIDPipeline.java +++ b/Core/src/main/java/com/plotsquared/core/uuid/UUIDPipeline.java @@ -164,8 +164,9 @@ public class UUIDPipeline { } catch (InterruptedException | ExecutionException e) { e.printStackTrace(); } catch (TimeoutException ignored) { - PlotSquared.log(Captions.PREFIX + " (UUID) Request for " + username + " timed out"); - // This is completely valid, we just don't care anymore + if (Settings.DEBUG) { + PlotSquared.debug(Captions.PREFIX + " (UUID) Request for " + username + " timed out"); + } } return null; } @@ -187,8 +188,9 @@ public class UUIDPipeline { } catch (InterruptedException | ExecutionException e) { e.printStackTrace(); } catch (TimeoutException ignored) { - PlotSquared.log(Captions.PREFIX + " (UUID) Request for " + uuid + " timed out"); - // This is completely valid, we just don't care anymore + if (Settings.DEBUG) { + PlotSquared.debug(Captions.PREFIX + " (UUID) Request for " + uuid + " timed out"); + } } return null; } @@ -321,7 +323,7 @@ public class UUIDPipeline { this.consume(mappings); return mappings; } else if (Settings.DEBUG) { - PlotSquared.log("Failed to find all usernames"); + PlotSquared.debug("Failed to find all usernames"); } if (Settings.UUID.UNKNOWN_AS_DEFAULT) { @@ -384,7 +386,7 @@ public class UUIDPipeline { this.consume(mappings); return mappings; } else if (Settings.DEBUG) { - PlotSquared.log("Failed to find all UUIDs"); + PlotSquared.debug("Failed to find all UUIDs"); } throw new ServiceError("End of pipeline");