mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Log.category for FSD and minor style changes
This commit is contained in:
committed by
Mat Sutcliffe
parent
0777d048c6
commit
f8e8318902
@@ -270,6 +270,13 @@ namespace BlackMisc
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! FSD specific
|
||||
static const CLogCategory &fsd()
|
||||
{
|
||||
static const CLogCategory cat { "swift.fsd" };
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Aviation specific
|
||||
static const CLogCategory &aviation()
|
||||
{
|
||||
@@ -294,6 +301,7 @@ namespace BlackMisc
|
||||
download(),
|
||||
driver(),
|
||||
flightPlan(),
|
||||
fsd(),
|
||||
guiComponent(),
|
||||
interpolator(),
|
||||
json(),
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace BlackMisc
|
||||
{ "downloading data", exactMatch(CLogCategory::download()) },
|
||||
{ "driver", exactMatch(CLogCategory::driver()) },
|
||||
{ "flight plan", exactMatch(CLogCategory::flightPlan()) },
|
||||
{ "FSD", exactMatch(CLogCategory::fsd()) },
|
||||
{ "interpolator", exactMatch(CLogCategory::interpolator()) },
|
||||
{ "JSON (conversion)", exactMatch(CLogCategory::json()) },
|
||||
{ "model cache", exactMatch(CLogCategory::modelCache()) },
|
||||
@@ -321,7 +322,7 @@ namespace BlackMisc
|
||||
|
||||
QString CLogPattern::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
Q_UNUSED(i18n)
|
||||
QString strategy;
|
||||
QString categories = m_strings.values().join("|"); // clazy:exclude=container-anti-pattern
|
||||
switch (m_strategy)
|
||||
|
||||
Reference in New Issue
Block a user