forked from qt-creator/qt-creator
Adding logging rule qtc.*.info=false to disable output by default
I also added the qtc prefix to all logging categories. Task-number: QTCREATORBUG-16767 Change-Id: I04214dba9912fe6c669f10566582d6009b5d75f0 Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -309,7 +309,8 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
const char *highDpiEnvironmentVariable = setHighDpiEnvironmentVariable();
|
const char *highDpiEnvironmentVariable = setHighDpiEnvironmentVariable();
|
||||||
|
|
||||||
QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=false"));
|
QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=false\nqtc.*.info=false"));
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
// increase the number of file that can be opened in Qt Creator.
|
// increase the number of file that can be opened in Qt Creator.
|
||||||
struct rlimit rl;
|
struct rlimit rl;
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
#include <QPen>
|
#include <QPen>
|
||||||
#include <qdebug.h>
|
#include <qdebug.h>
|
||||||
|
|
||||||
static Q_LOGGING_CATEGORY(itemlibraryPopulate, "itemlibrary.populate")
|
static Q_LOGGING_CATEGORY(itemlibraryPopulate, "qtc.itemlibrary.populate")
|
||||||
|
|
||||||
static bool inline registerItemLibrarySortedModel() {
|
static bool inline registerItemLibrarySortedModel() {
|
||||||
qmlRegisterType<QmlDesigner::ItemLibrarySectionModel>();
|
qmlRegisterType<QmlDesigner::ItemLibrarySectionModel>();
|
||||||
|
@@ -53,8 +53,8 @@
|
|||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
|
||||||
static Q_LOGGING_CATEGORY(puppetStart, "puppet.start")
|
static Q_LOGGING_CATEGORY(puppetStart, "qtc.puppet.start")
|
||||||
static Q_LOGGING_CATEGORY(puppetBuild, "puppet.build")
|
static Q_LOGGING_CATEGORY(puppetBuild, "qtc.puppet.build")
|
||||||
|
|
||||||
namespace QmlDesigner {
|
namespace QmlDesigner {
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@
|
|||||||
using namespace LanguageUtils;
|
using namespace LanguageUtils;
|
||||||
using namespace QmlJS;
|
using namespace QmlJS;
|
||||||
|
|
||||||
static Q_LOGGING_CATEGORY(rewriterBenchmark, "rewriter.load")
|
static Q_LOGGING_CATEGORY(rewriterBenchmark, "qtc.rewriter.load")
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user