mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Improved logging of "adding aircraft" so we can see details such as the model string
This commit is contained in:
committed by
Mat Sutcliffe
parent
d947baf344
commit
26afc5160d
@@ -167,6 +167,8 @@ namespace BlackSimPlugin
|
||||
bool CSimulatorFs9::physicallyAddRemoteAircraft(const CSimulatedAircraft &newRemoteAircraft)
|
||||
{
|
||||
const CCallsign callsign = newRemoteAircraft.getCallsign();
|
||||
this->logAddingAircraftModel(newRemoteAircraft);
|
||||
|
||||
if (m_hashFs9Clients.contains(callsign))
|
||||
{
|
||||
// already exists, remove first
|
||||
@@ -188,7 +190,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
emit aircraftRenderingChanged(remoteAircraftCopy);
|
||||
}
|
||||
CLogMessage(this).info(u"FS9: Added aircraft %1") << callsign.toQString();
|
||||
CLogMessage(this).info(u"FS9: Added aircraft '%1'") << callsign.toQString();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user