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 @@
#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;
......
......@@ -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; }
......
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