mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-02 18:24:25 +00:00
qt: Log messages with type>QtDebugMsg as non-debug
More important messages should end up in the log no matter if -debug=qt is set.
This commit is contained in:
parent
b29b509612
commit
d95ba75825
@ -126,15 +126,15 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans
|
|||||||
#if QT_VERSION < 0x050000
|
#if QT_VERSION < 0x050000
|
||||||
void DebugMessageHandler(QtMsgType type, const char *msg)
|
void DebugMessageHandler(QtMsgType type, const char *msg)
|
||||||
{
|
{
|
||||||
Q_UNUSED(type);
|
const char *category = (type == QtDebugMsg) ? "qt" : NULL;
|
||||||
LogPrint("qt", "GUI: %s\n", msg);
|
LogPrint(category, "GUI: %s\n", msg);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg)
|
void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg)
|
||||||
{
|
{
|
||||||
Q_UNUSED(type);
|
|
||||||
Q_UNUSED(context);
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user