forked from qt-creator/qt-creator
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:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user