refs #336 Using the new CLogMessage syntax to log messages.

This commit is contained in:
Mathew Sutcliffe
2014-10-14 00:09:18 +01:00
parent 067344df24
commit a294e8db0f
33 changed files with 200 additions and 192 deletions

View File

@@ -140,21 +140,21 @@ namespace BlackCore
catch (const NetworkNotConnectedException &e)
{
// this could be caused by a race condition during normal operation, so not an error
CLogMessage().debug(q) << "NetworkNotConnectedException" << e.what() << "in" << caller;
CLogMessage(q).debug() << "NetworkNotConnectedException" << e.what() << "in" << caller;
}
catch (const VatlibException &e)
{
CLogMessage().error(q, "VatlibException %1 in %2") << e.what() << caller;
CLogMessage(q).error("VatlibException %1 in %2") << e.what() << caller;
Q_ASSERT(false);
}
catch (const std::exception &e)
{
CLogMessage().error(q, "std::exception %1 in %2") << e.what() << caller;
CLogMessage(q).error("std::exception %1 in %2") << e.what() << caller;
Q_ASSERT(false);
}
catch (...)
{
CLogMessage().error(q, "Unknown exception in %1") << caller;
CLogMessage(q).error("Unknown exception in %1") << caller;
Q_ASSERT(false);
}
}