forked from qt-creator/qt-creator
qmljs: switch to the new category logging
Change-Id: Id4e43779590939e9d6dd2d0dab536f70e721f097 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
committed by
Kai Koehne
parent
b204c4dba2
commit
4dc438db5e
@@ -39,7 +39,6 @@
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/runextensions.h>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
@@ -55,6 +54,8 @@
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
QMLJS_EXPORT Q_LOGGING_CATEGORY(qmljsLog, "qtc.qmljs.common")
|
||||
|
||||
/*!
|
||||
\class QmlJS::ModelManagerInterface
|
||||
\brief The ModelManagerInterface class acts as an interface to the
|
||||
@@ -184,7 +185,7 @@ void ModelManagerInterface::writeWarning(const QString &msg)
|
||||
if (ModelManagerInterface *i = instance())
|
||||
i->writeMessageInternal(msg);
|
||||
else
|
||||
qDebug() << msg;
|
||||
qCWarning(qmljsLog) << msg;
|
||||
}
|
||||
|
||||
ModelManagerInterface::WorkingCopy ModelManagerInterface::workingCopy()
|
||||
@@ -209,7 +210,7 @@ QHash<QString, Language::Enum> ModelManagerInterface::languageForSuffix() const
|
||||
|
||||
void ModelManagerInterface::writeMessageInternal(const QString &msg) const
|
||||
{
|
||||
qDebug() << msg;
|
||||
qCWarning(qmljsLog) << msg;
|
||||
}
|
||||
|
||||
ModelManagerInterface::WorkingCopy ModelManagerInterface::workingCopyInternal() const
|
||||
@@ -222,7 +223,7 @@ void ModelManagerInterface::addTaskInternal(QFuture<void> result, const QString
|
||||
const char *taskId) const
|
||||
{
|
||||
Q_UNUSED(result);
|
||||
qDebug() << "started " << taskId << " " << msg;
|
||||
qCDebug(qmljsLog) << "started " << taskId << " " << msg;
|
||||
}
|
||||
|
||||
void ModelManagerInterface::loadQmlTypeDescriptionsInternal(const QString &resourcePath)
|
||||
@@ -630,7 +631,7 @@ void ModelManagerInterface::updateDocument(Document::Ptr doc)
|
||||
void ModelManagerInterface::updateLibraryInfo(const QString &path, const LibraryInfo &info)
|
||||
{
|
||||
if (!info.pluginTypeInfoError().isEmpty())
|
||||
qDebug() << "Dumping errors for " << path << ":" << info.pluginTypeInfoError();
|
||||
qCWarning(qmljsLog) << "Dumping errors for " << path << ":" << info.pluginTypeInfoError();
|
||||
|
||||
{
|
||||
QMutexLocker locker(&m_mutex);
|
||||
|
||||
Reference in New Issue
Block a user