mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #865, further improved logging
* set log flag in hints, so no lock for each aircraft is needed * as a result log functions have a bool log parameter now * highlight situation and parts changed
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ff7756db38
commit
62d4a94106
@@ -67,7 +67,6 @@ namespace BlackMisc
|
||||
// interpolation situations
|
||||
CAircraftSituation oldSituation;
|
||||
CAircraftSituation newSituation;
|
||||
const bool logInterpolation = setup.getLogCallsigns().contains(callsign);
|
||||
InterpolationLog log;
|
||||
|
||||
// latest first, now 00:20 split time
|
||||
@@ -215,7 +214,7 @@ namespace BlackMisc
|
||||
status.setChangedPosition(true);
|
||||
}
|
||||
status.setInterpolationSucceeded(true);
|
||||
if (logInterpolation)
|
||||
if (hints.isLoggingInterpolation())
|
||||
{
|
||||
log.timestamp = currentTimeMsSinceEpoc;
|
||||
log.callsign = callsign;
|
||||
@@ -224,6 +223,7 @@ namespace BlackMisc
|
||||
log.oldSituation = oldSituation;
|
||||
log.newSituation = newSituation;
|
||||
log.useParts = hints.hasAircraftParts();
|
||||
log.parts = hints.getAircraftParts();
|
||||
this->logInterpolation(log);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user