Increased log statements for debugging

This commit is contained in:
Papick Garcia Taboada committed 2017-06-13 14:45:19 +02:00
1 parent 625f89c4f2
commit da40b9f250
1 file changed
+3
@@ -83,6 +83,7 @@ public abstract class RootNodeBase extends BaseCompositeNode {
@Override
public void onSuccess(Pair<Long, RegattaAndRaceIdentifier> result) {
errorCount = 0;
// we have no race, or we have one, and had a different one in the past
if (result == null || (currentLiveRace != null && !result.getB().equals(currentLiveRace))) {
log("No live race found or currentLiveRace differs from loaded liverace");
@@ -93,8 +94,10 @@ public abstract class RootNodeBase extends BaseCompositeNode {
currentState);
} else {
final Long timeToRaceStartInMs = result.getA();
final RegattaAndRaceIdentifier loadedLiveRace = result.getB();
log("live race found: " + loadedLiveRace + " starting in " + timeToRaceStartInMs + "ms");
if (loadedLiveRace == null || timeToRaceStartInMs > PRE_RACE_DELAY) {
boolean comingFromLiveRace = currentLiveRace != null || currentPreLiveRace != null;
if (loadedLiveRace == null) {