mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Log.category for FSD and minor style changes
This commit is contained in:
committed by
Mat Sutcliffe
parent
0777d048c6
commit
f8e8318902
@@ -80,6 +80,18 @@ namespace BlackCore
|
||||
return escaped;
|
||||
}
|
||||
|
||||
const CLogCategoryList &CFSDClient::getLogCategories()
|
||||
{
|
||||
static const CLogCategoryList cats = []
|
||||
{
|
||||
CLogCategoryList cl = CContinuousWorker::getLogCategories();
|
||||
cl.push_back(CLogCategory::network());
|
||||
cl.push_back(CLogCategory::fsd());
|
||||
return cl;
|
||||
}();
|
||||
return cats;
|
||||
}
|
||||
|
||||
CFSDClient::CFSDClient(IClientProvider *clientProvider,
|
||||
IOwnAircraftProvider *ownAircraftProvider,
|
||||
IRemoteAircraftProvider *remoteAircraftProvider,
|
||||
|
||||
@@ -82,6 +82,9 @@ namespace BlackCore
|
||||
Q_INTERFACES(BlackMisc::Network::IEcosystemProvider)
|
||||
|
||||
public:
|
||||
//! Categories
|
||||
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||
|
||||
//! Ctor
|
||||
CFSDClient(BlackMisc::Network::IClientProvider *clientProvider,
|
||||
BlackMisc::Simulation::IOwnAircraftProvider *ownAircraftProvider,
|
||||
|
||||
Reference in New Issue
Block a user