From 265258e81b6ec3575d928240c6d3383fb915e108 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Fri, 8 May 2020 00:34:45 +0200 Subject: [PATCH] dont spam the logger --- .../ui/logger/loggerdisplays/uilogger/UiLoggerController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java index 23514c6..4eef619 100644 --- a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java +++ b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java @@ -145,7 +145,7 @@ public class UiLoggerController implements Initializable { elements.add(new Element(packet.toString(), "outgoing")); } } - if (!expr.equals("") && displayStructure && (!skiphugepackets || packet.length() <= 8000)) + if (!expr.equals("") && displayStructure && packet.length() <= 2000) elements.add(new Element("\n" + cleanTextContent(expr), "structure")); elements.add(new Element("\n--------------------\n", ""));