mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
# added logging back to RaceLogImpl (info-level)
This commit is contained in:
1 parent
29c9a80b29
commit
71ec86ee6b
1 file changed
+5
-4
+5
-4
@@ -15,12 +15,10 @@ import com.sap.sailing.domain.tracking.impl.TrackImpl;
|
||||
import com.sap.sailing.util.impl.ArrayListNavigableSet;
|
||||
|
||||
public class RaceLogImpl extends TrackImpl<RaceLogEvent> implements RaceLog {
|
||||
|
||||
private static final long serialVersionUID = -176745401321893502L;
|
||||
|
||||
private transient Set<RaceLogEventVisitor> listeners;
|
||||
|
||||
private final static Logger logger = Logger.getLogger(RaceLogImpl.class.getName());
|
||||
|
||||
private transient Set<RaceLogEventVisitor> listeners;
|
||||
|
||||
public RaceLogImpl(String nameForReadWriteLock) {
|
||||
super(new ArrayListNavigableSet<Timed>(RaceLogEventComparator.INSTANCE), nameForReadWriteLock);
|
||||
@@ -45,7 +43,10 @@ public class RaceLogImpl extends TrackImpl<RaceLogEvent> implements RaceLog {
|
||||
unlockAfterWrite();
|
||||
}
|
||||
if (isAdded) {
|
||||
logger.info(String.format("%s (%s) was added to log.", event, event.getClass().getName()));
|
||||
notifyListenersAboutReceive(event);
|
||||
} else {
|
||||
logger.warning(String.format("%s (%s) was not added to log. Ignoring", event, event.getClass().getName()));
|
||||
}
|
||||
return isAdded;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user