mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 06:25:33 +08:00
Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API.
This commit is contained in:
@@ -329,7 +329,7 @@ namespace BlackCore
|
||||
// be a little less verbose
|
||||
if ((m_totalGoodCountDb % 5 == 0) || m_consecutivePingBadCount > 0)
|
||||
{
|
||||
CLogMessage(this).info("Watchdog pinged '%1'") << url;
|
||||
CLogMessage(this).info(u"Watchdog pinged '%1'") << url;
|
||||
}
|
||||
m_totalGoodCountDb++;
|
||||
m_consecutivePingBadCount = 0;
|
||||
@@ -340,7 +340,7 @@ namespace BlackCore
|
||||
m_consecutivePingBadCount++;
|
||||
if (m_logOwnMessages)
|
||||
{
|
||||
CStatusMessage(this).warning("Watchdog ping failed, error: '%1', total good/bad DB counts: %2/%3") << errorString << m_totalGoodCountDb << m_totalBadCountDb;
|
||||
CStatusMessage(this).warning(u"Watchdog ping failed, error: '%1', total good/bad DB counts: %2/%3") << errorString << m_totalGoodCountDb << m_totalBadCountDb;
|
||||
}
|
||||
}
|
||||
this->setDbAccessibility(ok);
|
||||
|
||||
Reference in New Issue
Block a user