mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-31 16:20:45 +00:00
improving logs for race restore records, quoting regatta name
This commit is contained in:
1 parent
edc2c0dffa
commit
b41b1e1e40
3 files changed
+5
-3
No files matched your search
+2
@@ -415,6 +415,8 @@ public class TracTracRaceTrackerImpl extends AbstractRaceTrackerImpl<RaceTrackin
|
||||
// domain regatta *after* calling removeRace
|
||||
final RaceDefinition raceDefinition = domainFactory.removeRace(tractracRace.getEvent(), tractracRace, regattaInWhichToTryToRemoveExistingRace, trackedRegattaRegistry);
|
||||
if (raceDefinition != null) {
|
||||
logger.info("Found race "+regattaInWhichToTryToRemoveExistingRace.getName()+" / "+raceDefinition.getName()+
|
||||
" that is being tracked again. Removing old race");
|
||||
trackedRegattaRegistry.removeRace(regattaInWhichToTryToRemoveExistingRace, raceDefinition);
|
||||
}
|
||||
// Look up / create the Regatta and TrackedRegatta after they may potentially have been removed by the
|
||||
|
||||
+2
-2
@@ -3248,9 +3248,9 @@ public abstract class TrackedRaceImpl extends TrackedRaceWithWindEssentials impl
|
||||
addListener(new AbstractRaceChangeListener() {
|
||||
@Override
|
||||
public void statusChanged(TrackedRaceStatus newStatus, TrackedRaceStatus oldStatus) {
|
||||
logger.info("race "+TrackedRaceImpl.this+" went from "+oldStatus+" to "+newStatus);
|
||||
logger.info("race "+TrackedRaceImpl.this.getRaceIdentifier()+" went from "+oldStatus+" to "+newStatus);
|
||||
if (hasFinishedLoading(newStatus.getStatus())) {
|
||||
logger.info("race "+TrackedRaceImpl.this+" is considered having finished loading; running "+runnable);
|
||||
logger.info("race "+TrackedRaceImpl.this.getRaceIdentifier()+" is considered having finished loading; running "+runnable);
|
||||
removeListener(this);
|
||||
runnable.run();
|
||||
}
|
||||
|
||||
+1
-1
@@ -3248,7 +3248,7 @@ Replicator {
|
||||
@Override
|
||||
public void removeRace(Regatta regatta, RaceDefinition race) throws MalformedURLException, IOException,
|
||||
InterruptedException {
|
||||
logger.info("Removing the race " + race + "...");
|
||||
logger.info("Removing the race " + regatta.getName()+ " / " + race + "...");
|
||||
final RaceTrackingConnectivityParameters connectivityParams = connectivityParametersByRace.remove(race);
|
||||
if (connectivityParams != null) {
|
||||
getMongoObjectFactory().removeConnectivityParametersForRaceToRestore(connectivityParams);
|
||||
|
||||
Reference in new issue
Block a user