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

This commit is contained in:
Gavin Andresen committed 2013-09-18 20:39:24 +10:00
1 parent b16e9f02c8
commit e51321fb75
5 files changed
+16 -8

No files matched your search

+2 -2
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