10000 [GUI] Do not use Qt's debugging information in the log handler. by CaveSpectre11 · Pull Request #774 · Veil-Project/veil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[GUI] Do not use Qt's debugging information in the log handler. #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/qt/veil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,19 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans
/* qDebug() message handler --> debug.log */
void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg)
{
#ifndef QT_MESSAGELOGCONTEXT
Q_UNUSED(context);
//#ifndef QT_MESSAGELOGCONTEXT
// ^ Do not use this except in debugging environments as some OSs don't handle it properly

Q_UNUSED(context);
if (type == QtDebugMsg) {
LogPrint(BCLog::QT, "GUI: %s\n", msg.toStdString());
} else {
LogPrintf("GUI: %s\n", msg.toStdString());
}
#else // QT_MESSAGELOGCONTEXT needs to be added to the DEFS line of the Makefile
LogPrintf("GUI: %s:%d %s\n", context.file, context.line, msg.toStdString());
#endif

//#else // QT_MESSAGELOGCONTEXT needs to be added to the DEFS line of the Makefile
// LogPrintf("GUI: %s:%d %s\n", context.file, context.line, msg.toStdString());
//#endif
}

/** Class encapsulating Bitcoin Core startup and shutdown.
Expand Down
0