mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-23 12:33:53 +00:00
added logging option for TTCM raw positions; see logging_debug.properties
This commit is contained in:
1 parent
cc3fea5520
commit
3ed26c1256
2 files changed
+12
-3
No files matched your search
+9
-3
@@ -32,12 +32,18 @@ public class DynamicTrackImpl<ItemType, FixType extends GPSFix> extends
|
||||
}
|
||||
if (logger.isLoggable(Level.FINEST)) {
|
||||
FixType last;
|
||||
logger.finest("GPS fix "+gpsFix+" for "+getTrackedItem()+", isValid="+gpsFix.isValid()+", time/distance/speed from last: "+
|
||||
lockForRead();
|
||||
try {
|
||||
logger.finest("GPS fix "+gpsFix+" for "+getTrackedItem()+", isValid="+isValid(getInternalRawFixes(), gpsFix)+
|
||||
", time/distance/speed from last: "+
|
||||
((last=getInternalRawFixes().lower(gpsFix))==null
|
||||
? "null"
|
||||
: (gpsFix.getTimePoint().asMillis()-last.getTimePoint().asMillis())+"ms/"+
|
||||
: (gpsFix.getTimePoint().asMillis()-last.getTimePoint().asMillis()+"ms/"+
|
||||
gpsFix.getPosition().getDistance(last.getPosition())) + "/"+
|
||||
gpsFix.getPosition().getDistance(last.getPosition()).inTime(gpsFix.getTimePoint().asMillis()-last.getTimePoint().asMillis()));
|
||||
gpsFix.getPosition().getDistance(last.getPosition()).inTime(gpsFix.getTimePoint().asMillis()-last.getTimePoint().asMillis())));
|
||||
} finally {
|
||||
unlockAfterRead();
|
||||
}
|
||||
}
|
||||
for (GPSTrackListener<ItemType, FixType> listener : getListeners()) {
|
||||
listener.gpsFixReceived(gpsFix, getTrackedItem());
|
||||
|
||||
@@ -19,3 +19,6 @@ java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
|
||||
com.sap.sailing.level = FINEST
|
||||
org.eclipse.jetty.level = INFO
|
||||
org.apache.activemq.level = INFO
|
||||
|
||||
# TTCM logging is disabled by default; enable by commenting out the following line
|
||||
com.sap.sailing.domain.tracking.impl.DynamicTrackImpl.level = OFF
|
||||
Reference in new issue
Block a user