Refactor: OutputDebugStringF -> LogPrint(category, ...)

This commit is contained in:
Gavin Andresen
2013-09-18 18:03:21 +10:00
parent b16e9f02c8
commit e51321fb75
5 changed files with 16 additions and 8 deletions

View File

@@ -155,12 +155,12 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans
#if QT_VERSION < 0x050000
void DebugMessageHandler(QtMsgType type, const char * msg)
{
OutputDebugStringF("Bitcoin-Qt: %s\n", msg);
LogPrint("qt", "Bitcoin-Qt: %s\n", msg);
}
#else
void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg)
{
OutputDebugStringF("Bitcoin-Qt: %s\n", qPrintable(msg));
LogPrint("qt", "Bitcoin-Qt: %s\n", qPrintable(msg));
}
#endif