mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #336 Using the new CLogMessage syntax to log messages.
This commit is contained in:
@@ -544,7 +544,7 @@ namespace BlackSimPlugin
|
||||
}
|
||||
|
||||
m_syncDeferredCounter = 5; // allow some time to sync
|
||||
CLogMessage().info(this, "Synchronized time to UTC: %1") << myTime.toString();
|
||||
CLogMessage(this).info("Synchronized time to UTC: %1") << myTime.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace BlackSimPlugin
|
||||
.arg(event->szApplicationName)
|
||||
.arg(event->dwApplicationVersionMajor).arg(event->dwApplicationVersionMinor).arg(event->dwApplicationBuildMajor).arg(event->dwApplicationBuildMinor)
|
||||
.arg(event->dwSimConnectVersionMajor).arg(event->dwSimConnectVersionMinor).arg(event->dwSimConnectBuildMajor).arg(event->dwSimConnectBuildMinor);
|
||||
CLogMessage().info(CSimulatorFsx::getMessageCategory(), CProject::systemNameAndVersion());
|
||||
CLogMessage(static_cast<CSimulatorFsx *>(nullptr)).info(CProject::systemNameAndVersion());
|
||||
break;
|
||||
}
|
||||
case SIMCONNECT_RECV_ID_EXCEPTION:
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
if (enable)
|
||||
{
|
||||
CLogMessage().warning(this, "X-Plane already provides real time synchronization");
|
||||
CLogMessage(this).warning("X-Plane already provides real time synchronization");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user