aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/stomp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/stomp')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java
index 1aeedb61..80d1ea7a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java
@@ -53,12 +53,14 @@ public class StompPayload {
if (payload != null)
sb.append(payload);
sb.append((char) 0);
- System.out.println("Probably sending "+ sb);
+ if (!sb.toString().contains("cosmetic"))
+ System.out.println("Probably sending "+ sb);
return sb.toString();
}
public static StompPayload parse(String payload) {
- System.out.println("Parsing "+payload);
+ if (!payload.contains("cosmetic"))
+ System.out.println("Parsing "+payload);
Scanner scanner = new Scanner(payload);
StompPayload stompPayload = new StompPayload();
stompPayload.method = StompHeader.valueOf(scanner.nextLine());