mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-11 14:50:56 +00:00
added more logging
This commit is contained in:
1 parent
857921b192
commit
fc1d91f8a6
1 file changed
+7
-6
+7
-6
@@ -518,7 +518,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
Regatta result = regattasByName.get(regatta.getName());
|
||||
if (result == null) {
|
||||
result = regatta;
|
||||
logger.info("Created regatta "+result.getName()+" ("+hashCode()+")");
|
||||
logger.info("Created regatta "+result.getName()+" ("+hashCode()+") on "+this);
|
||||
cacheAndReplicateDefaultRegatta(result);
|
||||
}
|
||||
return result;
|
||||
@@ -529,7 +529,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
Iterable<? extends Series> series, boolean persistent) {
|
||||
Regatta regatta = new RegattaImpl(baseEventName,
|
||||
com.sap.sailing.domain.base.DomainFactory.INSTANCE.getOrCreateBoatClass(boatClassName), series, persistent);
|
||||
logger.info("Created regatta " + regatta.getName() + " (" + hashCode() + ")");
|
||||
logger.info("Created regatta " + regatta.getName() + " (" + hashCode() + ") on "+this);
|
||||
cacheAndReplicateSpecificRegattaWithoutRaceColumns(regatta);
|
||||
if (persistent) {
|
||||
updateStoredRegatta(regatta);
|
||||
@@ -664,7 +664,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
*/
|
||||
private void cacheAndReplicateSpecificRegattaWithoutRaceColumns(Regatta regatta) {
|
||||
if (!regattasByName.containsKey(regatta.getName())) {
|
||||
logger.info("putting regatta "+regatta.getName()+" ("+regatta.hashCode()+") into regattasByName");
|
||||
logger.info("putting regatta "+regatta.getName()+" ("+regatta.hashCode()+") into regattasByName of "+this);
|
||||
regattasByName.put(regatta.getName(), regatta);
|
||||
regatta.addRegattaListener(this);
|
||||
replicate(new AddSpecificRegatta(regatta.getBaseName(), regatta.getBoatClass() == null ? null : regatta
|
||||
@@ -696,7 +696,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
*/
|
||||
private void cacheAndReplicateDefaultRegatta(Regatta regatta) {
|
||||
if (!regattasByName.containsKey(regatta.getName())) {
|
||||
logger.info("putting regatta "+regatta.getName()+" ("+regatta.hashCode()+") into regattasByName");
|
||||
logger.info("putting regatta "+regatta.getName()+" ("+regatta.hashCode()+") into regattasByName of "+this);
|
||||
regattasByName.put(regatta.getName(), regatta);
|
||||
regatta.addRegattaListener(this);
|
||||
replicate(new AddDefaultRegatta(regatta.getBaseName(), regatta.getBoatClass() == null ? null : regatta.getBoatClass().getName()));
|
||||
@@ -887,7 +887,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
stopTracking(regatta);
|
||||
if (regatta != null) {
|
||||
if (regatta.getName() != null) {
|
||||
logger.info("Removing regatta "+regatta.getName()+" ("+regatta.hashCode()+") from RacingEventServiceImpl");
|
||||
logger.info("Removing regatta "+regatta.getName()+" ("+regatta.hashCode()+") from "+this);
|
||||
regattasByName.remove(regatta.getName());
|
||||
regattaTrackingCache.remove(regatta);
|
||||
regatta.removeRegattaListener(this);
|
||||
@@ -1023,7 +1023,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
// remove the race from the regatta if the regatta is not persistently stored
|
||||
regatta.removeRace(race);
|
||||
if (!regatta.isPersistent() && Util.isEmpty(regatta.getAllRaces())) {
|
||||
logger.info("Removing regatta "+regatta.getName()+" from service "+this);
|
||||
logger.info("Removing regatta "+regatta.getName()+" ("+regatta.hashCode()+") from service "+this);
|
||||
regattasByName.remove(regatta.getName());
|
||||
regatta.removeRegattaListener(this);
|
||||
}
|
||||
@@ -1347,6 +1347,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
@SuppressWarnings("unchecked") // the type-parameters in the casts of the de-serialized collection objects can't be checked
|
||||
@Override
|
||||
public synchronized void initiallyFillFrom(ObjectInputStream ois) throws IOException, ClassNotFoundException {
|
||||
logger.info("Performing initial replication load on "+this);
|
||||
ClassLoader oldContextClassloader = Thread.currentThread().getContextClassLoader();
|
||||
try {
|
||||
// Use this object's class's class loader as the context class loader which will then be used for
|
||||
|
||||
Reference in new issue
Block a user