forked from j62/ctbrec
1
0
Fork 0

Change log level

This commit is contained in:
0xboobface 2019-12-30 18:54:47 +01:00
parent c767d14aa9
commit 643650d69e
1 changed files with 1 additions and 3 deletions

View File

@ -38,8 +38,6 @@ public class OnlineMonitor extends Thread {
private Map<String, ExecutorService> executors = new HashMap<>(); private Map<String, ExecutorService> executors = new HashMap<>();
// TODO divide models into buckets by their site in each iteration a model of each bucket can be testes in parallel
// this will speed up the testing, but not hammer the sites
public OnlineMonitor(Recorder recorder) { public OnlineMonitor(Recorder recorder) {
this.recorder = recorder; this.recorder = recorder;
setName("OnlineMonitor"); setName("OnlineMonitor");
@ -109,7 +107,7 @@ public class OnlineMonitor extends Thread {
EventBusHolder.BUS.post(new ModelIsOnlineEvent(model)); EventBusHolder.BUS.post(new ModelIsOnlineEvent(model));
} }
Model.State state = model.getOnlineState(false); Model.State state = model.getOnlineState(false);
LOG.debug("Model online state: {}", state); LOG.trace("Model online state: {} {}", model.getName(), state);
Model.State oldState = states.getOrDefault(model, UNKNOWN); Model.State oldState = states.getOrDefault(model, UNKNOWN);
states.put(model, state); states.put(model, state);
if (state != oldState) { if (state != oldState) {