Commit 1c769d42 authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

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: default avatarKai Koehne <kai.koehne@digia.com>
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent ce962028
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <extensionsystem/pluginspec.h> #include <extensionsystem/pluginspec.h>
#include <qtsingleapplication.h> #include <qtsingleapplication.h>
#include <utils/hostosinfo.h> #include <utils/hostosinfo.h>
#include <utils/logging.h>
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>
...@@ -286,6 +287,7 @@ static inline QSettings *userSettings() ...@@ -286,6 +287,7 @@ static inline QSettings *userSettings()
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=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;
......
...@@ -43,6 +43,7 @@ class QLoggingCategory ...@@ -43,6 +43,7 @@ class QLoggingCategory
public: public:
explicit QLoggingCategory(const char *category) : name(category) {} explicit QLoggingCategory(const char *category) : name(category) {}
~QLoggingCategory(); ~QLoggingCategory();
static void setFilterRules(const QString &) {}
bool isDebugEnabled() const { return false; } bool isDebugEnabled() const { return false; }
bool isWarningEnabled() const { return true; } bool isWarningEnabled() const { return true; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment