mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
@@ -85,6 +85,13 @@ namespace BlackMisc
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Mapping
|
||||
static const CLogCategory &mapping()
|
||||
{
|
||||
static const CLogCategory cat { "swift.mapping" };
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Webservice with swift DB
|
||||
static const CLogCategory &swiftDbWebservice()
|
||||
{
|
||||
@@ -105,6 +112,7 @@ namespace BlackMisc
|
||||
guiComponent(),
|
||||
download(),
|
||||
webservice(),
|
||||
mapping(),
|
||||
swiftDbWebservice(),
|
||||
};
|
||||
return cats;
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace BlackMisc
|
||||
{ "uncategorized (swift)", exactMatch(CLogCategory::uncategorized()) },
|
||||
{ "validation", exactMatch(CLogCategory::validation()) },
|
||||
{ "verification", exactMatch(CLogCategory::verification()) },
|
||||
{ "model mapping", exactMatch(CLogCategory::mapping()) },
|
||||
{ "swift contexts", exactMatch(CLogCategory::context()) },
|
||||
{ "swift context slots", exactMatch(CLogCategory::contextSlot()) },
|
||||
{ "swift GUI", exactMatch(CLogCategory::guiComponent()) },
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace BlackMisc
|
||||
newMsgs.append(msg.getMessage());
|
||||
CStatusMessage::StatusSeverity ms = msg.getSeverity();
|
||||
if (s < ms) { s = ms; }
|
||||
cats.join(msg.getCategories());
|
||||
cats = cats.join(msg.getCategories());
|
||||
}
|
||||
const CStatusMessage newMsg(cats, s, newMsgs.join(", "));
|
||||
return newMsg;
|
||||
|
||||
Reference in New Issue
Block a user