forked from j62/ctbrec
Reduce log level for FC2Live websocket messages to TRACE
This commit is contained in:
parent
76c5c2e6c6
commit
ba0c456f19
|
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue