forked from qt-creator/qt-creator
Remove hard-coded disabling of debug logs
Instead, set the default level of all logs to QtWarningMsg. The call to setFilterRules overrides the user preferences in qtlogging.ini. Change-Id: Id5f6cd550d14ff7f45ae04c5d3110e0bafb0f072 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
a27d4e9455
commit
bdc2b4b59f
@@ -30,7 +30,7 @@
|
||||
#include <QTextBlock>
|
||||
#include <QTextDocument>
|
||||
|
||||
static Q_LOGGING_CATEGORY(formatterLog, "qtc.qmljs.formatter")
|
||||
static Q_LOGGING_CATEGORY(formatterLog, "qtc.qmljs.formatter", QtWarningMsg)
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ enum {
|
||||
debug = false
|
||||
};
|
||||
|
||||
static Q_LOGGING_CATEGORY(iconsLog, "qtc.qmljs.icons")
|
||||
static Q_LOGGING_CATEGORY(iconsLog, "qtc.qmljs.icons", QtWarningMsg)
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
static Q_LOGGING_CATEGORY(importsLog, "qtc.qmljs.imports")
|
||||
static Q_LOGGING_CATEGORY(importsLog, "qtc.qmljs.imports", QtWarningMsg)
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
QMLJS_EXPORT Q_LOGGING_CATEGORY(qmljsLog, "qtc.qmljs.common")
|
||||
QMLJS_EXPORT Q_LOGGING_CATEGORY(qmljsLog, "qtc.qmljs.common", QtWarningMsg)
|
||||
|
||||
/*!
|
||||
\class QmlJS::ModelManagerInterface
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <QFile>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
static Q_LOGGING_CATEGORY(simpleReaderLog, "qtc.qmljs.simpleReader")
|
||||
static Q_LOGGING_CATEGORY(simpleReaderLog, "qtc.qmljs.simpleReader", QtWarningMsg)
|
||||
|
||||
namespace QmlJS{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user