mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-11 14:50:56 +00:00
added more logging to find out how the regatta loses its column
This commit is contained in:
1 parent
6f446d0f0d
commit
df45ba41fc
2 files changed
+7
-2
No files matched your search
+2
-1
@@ -270,7 +270,8 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
@Override
|
||||
public RegattaLeaderboard addRegattaLeaderboard(RegattaIdentifier regattaIdentifier, int[] discardThresholds) {
|
||||
Regatta regatta = getRegatta(regattaIdentifier);
|
||||
logger.info("adding regatta leaderboard for regatta "+(regatta==null?"null":regatta.getName())+" to "+this);
|
||||
logger.info("adding regatta leaderboard for regatta "
|
||||
+ (regatta == null ? "null" : (regatta.getName() + " (" + regatta.hashCode() + ")")) + " to " + this);
|
||||
RegattaLeaderboard result = null;
|
||||
if (regatta != null) {
|
||||
result = new RegattaLeaderboardImpl(regatta, new ScoreCorrectionImpl(), new ResultDiscardingRuleImpl(
|
||||
|
||||
+5
-1
@@ -5,6 +5,7 @@ import java.util.logging.Logger;
|
||||
import com.sap.sailing.domain.base.RaceColumn;
|
||||
import com.sap.sailing.domain.common.RaceIdentifier;
|
||||
import com.sap.sailing.domain.leaderboard.Leaderboard;
|
||||
import com.sap.sailing.domain.leaderboard.RegattaLeaderboard;
|
||||
import com.sap.sailing.domain.tracking.TrackedRace;
|
||||
import com.sap.sailing.server.RacingEventService;
|
||||
import com.sap.sailing.server.RacingEventServiceOperation;
|
||||
@@ -49,7 +50,10 @@ public class ConnectTrackedRaceToLeaderboardColumn extends AbstractLeaderboardCo
|
||||
success = true;
|
||||
updateDB(toState, leaderboard, raceColumn);
|
||||
} else {
|
||||
logger.info("unable to find race column "+getColumnName()+" in leaderboard "+leaderboard.getName());
|
||||
final String leaderboardAsString = leaderboard.getName() + (leaderboard instanceof RegattaLeaderboard ?
|
||||
(" for regatta "+((RegattaLeaderboard) leaderboard).getRegatta().getName()+
|
||||
" ("+((RegattaLeaderboard) leaderboard).getRegatta().hashCode()+")"): "");
|
||||
logger.info("unable to find race column "+getColumnName()+" in leaderboard "+leaderboardAsString);
|
||||
}
|
||||
} else {
|
||||
logger.info("unable to find leaderboard "+getLeaderboardName()+" in server "+toState);
|
||||
|
||||
Reference in new issue
Block a user