From c8f4ff4acbd9c723e87b519b8516558a5ca97a65 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 1 Mar 2021 22:36:06 +0900 Subject: stomp! --- src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/stomp') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java index 9476241c..eb5b1735 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java @@ -1,5 +1,6 @@ package kr.syeyoung.dungeonsguide.stomp; +import kr.syeyoung.dungeonsguide.features.FeatureRegistry; import lombok.Data; import lombok.Singular; import lombok.experimental.Accessors; @@ -36,11 +37,13 @@ public class StompPayload { if (payload != null) sb.append(payload); sb.append((char) 0); + if (FeatureRegistry.DEBUG.isEnabled()) System.out.println("Probably sending "+sb.toString()); return sb.toString(); } public static StompPayload parse(String payload) { + if (FeatureRegistry.DEBUG.isEnabled()) System.out.println("Parsing "+payload); Scanner scanner = new Scanner(payload); StompPayload stompPayload = new StompPayload(); -- cgit