diff options
| author | Gavin Andresen <[email protected]> | 2014-07-01 10:25:38 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2014-07-01 10:25:38 -0400 |
| commit | f04f1234078288d4806aaab0952d60f137337e81 (patch) | |
| tree | f9bff170335fee185c37e40ea76eb59832f3f839 /src/qt/bitcoin.cpp | |
| parent | Merge pull request #4325 (diff) | |
| parent | qt: Change serious messages from qDebug to qWarning (diff) | |
| download | discoin-f04f1234078288d4806aaab0952d60f137337e81.tar.xz discoin-f04f1234078288d4806aaab0952d60f137337e81.zip | |
Merge pull request #4448 from laanwj/2014_07_qt_payment_rq_logging
qt: Always log warning/error messages to debug.log
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 89305e9f3..569facb49 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -126,15 +126,15 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans #if QT_VERSION < 0x050000 void DebugMessageHandler(QtMsgType type, const char *msg) { - Q_UNUSED(type); - LogPrint("qt", "GUI: %s\n", msg); + const char *category = (type == QtDebugMsg) ? "qt" : NULL; + LogPrint(category, "GUI: %s\n", msg); } #else void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg) { - Q_UNUSED(type); Q_UNUSED(context); - LogPrint("qt", "GUI: %s\n", qPrintable(msg)); + const char *category = (type == QtDebugMsg) ? "qt" : NULL; + LogPrint(category, "GUI: %s\n", QString::toStdString(msg)); } #endif |