mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
* follow up of debug session, added failure/success to status message * return status messages instead of directly logging in functions returning CStatusMessage. * Ignore empty preformatted messages. * new log category
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f490504f52
commit
144ba62572
@@ -142,6 +142,16 @@ namespace BlackMisc
|
||||
return c.isEmpty() ? this->getCategoriesAsString() : c;
|
||||
}
|
||||
|
||||
bool CStatusMessage::isSuccess() const
|
||||
{
|
||||
return !isFailure();
|
||||
}
|
||||
|
||||
bool CStatusMessage::isFailure() const
|
||||
{
|
||||
return getSeverity() == SeverityError;
|
||||
}
|
||||
|
||||
void CStatusMessage::prependMessage(const QString &msg)
|
||||
{
|
||||
if (msg.isEmpty()) { return; }
|
||||
|
||||
Reference in New Issue
Block a user