Improved logging of "adding aircraft" so we can see details such as the model string

This commit is contained in:
Klaus Basan
2019-08-11 20:05:16 +02:00
parent bd49f5151a
commit eb67310b04
8 changed files with 18 additions and 5 deletions

View File

@@ -1186,6 +1186,11 @@ namespace BlackCore
return true;
}
void ISimulator::logAddingAircraftModel(const CSimulatedAircraft &aircraft) const
{
CLogMessage(this).info(u"Adding '%1' '%2' to '%3'") << aircraft.getCallsign() << aircraft.getModel().getModelStringAndDbKey() << this->getSimulatorInfo().toQString(true);
}
QString ISimulator::latestLoggedDataFormatted(const CCallsign &cs) const
{
const SituationLog s = m_interpolationLogger.getLastSituationLog(cs);