From 441ca41ee387014a92c63c46c56e5e6ede96645a Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 6 Nov 2019 23:06:44 +0100 Subject: [PATCH] [FS9] Log. messages --- src/blackcore/context/contextsimulatorimpl.cpp | 3 ++- src/plugins/simulator/fs9/fs9client.cpp | 5 ++--- src/plugins/simulator/fs9/simulatorfs9.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/blackcore/context/contextsimulatorimpl.cpp b/src/blackcore/context/contextsimulatorimpl.cpp index ce5badd30..fc9dc1b80 100644 --- a/src/blackcore/context/contextsimulatorimpl.cpp +++ b/src/blackcore/context/contextsimulatorimpl.cpp @@ -54,6 +54,7 @@ using namespace BlackMisc::Simulation; using namespace BlackMisc::Simulation::XPlane; using namespace BlackMisc::Simulation::FsCommon; using namespace BlackMisc::Geo; +using namespace BlackMisc::Weather; using namespace BlackMisc::Simulation; using namespace BlackMisc::Simulation::Settings; using namespace BlackMisc::Simulation::Data; @@ -1125,7 +1126,7 @@ namespace BlackCore m_simulatorPlugin.second->setWeatherActivated(activated); } - void CContextSimulator::requestWeatherGrid(const Weather::CWeatherGrid &weatherGrid, const CIdentifier &identifier) + void CContextSimulator::requestWeatherGrid(const CWeatherGrid &weatherGrid, const CIdentifier &identifier) { if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << identifier; } m_weatherManager.requestWeatherGrid(weatherGrid, identifier); diff --git a/src/plugins/simulator/fs9/fs9client.cpp b/src/plugins/simulator/fs9/fs9client.cpp index dc1057860..1c4b5ce80 100644 --- a/src/plugins/simulator/fs9/fs9client.cpp +++ b/src/plugins/simulator/fs9/fs9client.cpp @@ -309,8 +309,7 @@ namespace BlackSimPlugin return logDirectPlayError(hr); } - - CLogMessage(this).debug() << m_callsign << " connected to session."; + CLogMessage(this).info(u"Callsign '%1' connected to session.") << m_callsign; sendMultiplayerChangePlayerPlane(); sendMultiplayerPosition(); sendMultiplayerParamaters(); @@ -327,7 +326,7 @@ namespace BlackSimPlugin HRESULT hr = s_ok(); if (m_clientStatus == Disconnected) { return hr; } - CLogMessage(this).debug() << "Closing DirectPlay connection for " << m_callsign; + CLogMessage(this).info(u"Closing DirectPlay connection for '%1'") << m_callsign; if (isFailure(hr = m_directPlayPeer->Close(0))) { return logDirectPlayError(hr); diff --git a/src/plugins/simulator/fs9/simulatorfs9.cpp b/src/plugins/simulator/fs9/simulatorfs9.cpp index f68545b6d..bea277da4 100644 --- a/src/plugins/simulator/fs9/simulatorfs9.cpp +++ b/src/plugins/simulator/fs9/simulatorfs9.cpp @@ -201,7 +201,7 @@ namespace BlackSimPlugin delete fs9Client; m_hashFs9Clients.remove(callsign); updateAircraftRendered(callsign, false); - CLogMessage(this).info(u"FS9: Removed aircraft %1") << callsign.toQString(); + CLogMessage(this).info(u"FS9: Removed aircraft '%1'") << callsign.toQString(); return CSimulatorFsCommon::physicallyRemoveRemoteAircraft(callsign); }