forked from j62/ctbrec
1
0
Fork 0

Reduce log level for FC2Live websocket messages to TRACE

This commit is contained in:
0xboobface 2019-01-27 14:58:22 +01:00
parent 76c5c2e6c6
commit ba0c456f19
1 changed files with 3 additions and 3 deletions

View File

@ -315,13 +315,13 @@ public class Fc2Model extends AbstractModel {
monitor.notify(); monitor.notify();
} }
} else { } else {
LOG.debug(json.toString()); LOG.trace(json.toString());
} }
} }
} else if(json.optString("name").equals("user_count") || json.optString("name").equals("comment")) { } else if(json.optString("name").equals("user_count") || json.optString("name").equals("comment")) {
// ignore // ignore
} else { } else {
LOG.debug("WS <-- {}: {}", getName(), text); LOG.trace("WS <-- {}: {}", getName(), text);
} }
// send heartbeat every now and again // send heartbeat every now and again
@ -329,7 +329,7 @@ public class Fc2Model extends AbstractModel {
if( (now - lastHeartBeat) > TimeUnit.SECONDS.toMillis(30)) { if( (now - lastHeartBeat) > TimeUnit.SECONDS.toMillis(30)) {
webSocket.send("{\"name\":\"heartbeat\",\"arguments\":{},\"id\":" + messageId + "}"); webSocket.send("{\"name\":\"heartbeat\",\"arguments\":{},\"id\":" + messageId + "}");
lastHeartBeat = now; lastHeartBeat = now;
LOG.debug("Sending heartbeat for {} (messageId: {})", getName(), messageId); LOG.trace("Sending heartbeat for {} (messageId: {})", getName(), messageId);
messageId++; messageId++;
} }
} }