creator: disable debug level for the qtc.* logging categories

by default all subcategories of qtc have debugging disabled.
This allows to easily use them for verbose output and replace
per module/file debug flags.

Change-Id: I130c496a9ee83d3b3b5cbd9b4e087dc00c40b113
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Fawzi Mohamed
2014-06-12 20:39:14 +02:00
parent ce96202857
commit 1c769d429a
2 changed files with 3 additions and 0 deletions

View File

@@ -36,6 +36,7 @@
#include <extensionsystem/pluginspec.h>
#include <qtsingleapplication.h>
#include <utils/hostosinfo.h>
#include <utils/logging.h>
#include <QDebug>
#include <QDir>
@@ -286,6 +287,7 @@ static inline QSettings *userSettings()
int main(int argc, char **argv)
{
QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=false"));
#ifdef Q_OS_MAC
// increase the number of file that can be opened in Qt Creator.
struct rlimit rl;

View File

@@ -43,6 +43,7 @@ class QLoggingCategory
public:
explicit QLoggingCategory(const char *category) : name(category) {}
~QLoggingCategory();
static void setFilterRules(const QString &) {}
bool isDebugEnabled() const { return false; }
bool isWarningEnabled() const { return true; }