From df969ff9808a15153fbc4ea58885fb182906b4d7 2017-07-07 09:08:53 From: mperrinel Date: 2017-07-07 09:08:53 Subject: [PATCH] Change info to debug on thread display log --- diff --git a/core/src/Variable/Variable.cpp b/core/src/Variable/Variable.cpp index fc2f251..2a2ba89 100644 --- a/core/src/Variable/Variable.cpp +++ b/core/src/Variable/Variable.cpp @@ -60,7 +60,7 @@ void Variable::setDateTime(const SqpDateTime &dateTime) noexcept void Variable::setDataSeries(std::shared_ptr dataSeries) noexcept { - qCInfo(LOG_Variable()) << "Variable::setDataSeries" << QThread::currentThread()->objectName(); + qCDebug(LOG_Variable()) << "Variable::setDataSeries" << QThread::currentThread()->objectName(); if (!dataSeries) { /// @todo ALX : log return; diff --git a/core/src/Variable/VariableCacheController.cpp b/core/src/Variable/VariableCacheController.cpp index d043088..526fc9e 100644 --- a/core/src/Variable/VariableCacheController.cpp +++ b/core/src/Variable/VariableCacheController.cpp @@ -33,8 +33,8 @@ VariableCacheController::VariableCacheController(QObject *parent) void VariableCacheController::addDateTime(std::shared_ptr variable, const SqpDateTime &dateTime) { - qCInfo(LOG_VariableCacheController()) << "VariableCacheController::addDateTime" - << QThread::currentThread()->objectName(); + qCDebug(LOG_VariableCacheController()) << "VariableCacheController::addDateTime" + << QThread::currentThread()->objectName(); if (variable) { auto findVariableIte = impl->m_VariableToSqpDateTimeListMap.find(variable); if (findVariableIte == impl->m_VariableToSqpDateTimeListMap.end()) { @@ -84,7 +84,7 @@ QVector VariableCacheController::provideNotInCacheDateTimeList(std::shared_ptr variable, const SqpDateTime &dateTime) { - qCInfo(LOG_VariableCacheController()) + qCDebug(LOG_VariableCacheController()) << "VariableCacheController::provideNotInCacheDateTimeList" << QThread::currentThread()->objectName(); auto notInCache = QVector{}; @@ -107,8 +107,8 @@ VariableCacheController::provideNotInCacheDateTimeList(std::shared_ptr QVector VariableCacheController::dateCacheList(std::shared_ptr variable) const noexcept { - qCInfo(LOG_VariableCacheController()) << "VariableCacheController::dateCacheList" - << QThread::currentThread()->objectName(); + qCDebug(LOG_VariableCacheController()) << "VariableCacheController::dateCacheList" + << QThread::currentThread()->objectName(); try { return impl->m_VariableToSqpDateTimeListMap.at(variable); } diff --git a/gui/src/Visualization/VisualizationGraphHelper.cpp b/gui/src/Visualization/VisualizationGraphHelper.cpp index 8e5073d..afd2e62 100644 --- a/gui/src/Visualization/VisualizationGraphHelper.cpp +++ b/gui/src/Visualization/VisualizationGraphHelper.cpp @@ -11,7 +11,7 @@ namespace { class SqpDataContainer : public QCPGraphDataContainer { public: - void sqpAdd(const QCPGraphData &data) { mData.append(data); } + void appendGraphDataUnsorted(const QCPGraphData &data) { mData.append(data); } }; @@ -37,8 +37,8 @@ QSharedPointer axisTicker(bool isTimeAxis) void updateScalarData(QCPAbstractPlottable *component, ScalarSeries &scalarSeries, const SqpDateTime &dateTime) { - qCInfo(LOG_VisualizationGraphHelper()) << "TORM: updateScalarData" - << QThread::currentThread()->objectName(); + qCDebug(LOG_VisualizationGraphHelper()) << "TORM: updateScalarData" + << QThread::currentThread()->objectName(); if (auto qcpGraph = dynamic_cast(component)) { // Clean the graph // NAIVE approch @@ -58,7 +58,7 @@ void updateScalarData(QCPAbstractPlottable *component, ScalarSeries &scalarSerie for (auto i = 0; i < count; ++i) { const auto x = xData[i]; if (x >= dateTime.m_TStart && x <= dateTime.m_TEnd) { - sqpDataContainer->sqpAdd(QCPGraphData(x, valuesData[i])); + sqpDataContainer->appendGraphDataUnsorted(QCPGraphData(x, valuesData[i])); } } sqpDataContainer->sort(); diff --git a/plugins/mockplugin/src/CosinusProvider.cpp b/plugins/mockplugin/src/CosinusProvider.cpp index 9d2ad51..8bb61dc 100644 --- a/plugins/mockplugin/src/CosinusProvider.cpp +++ b/plugins/mockplugin/src/CosinusProvider.cpp @@ -40,8 +40,8 @@ CosinusProvider::retrieveData(const DataProviderParameters ¶meters) const void CosinusProvider::requestDataLoading(const QVector &dateTimeList) { - qCInfo(LOG_CosinusProvider()) << "CosinusProvider::requestDataLoading" - << QThread::currentThread()->objectName(); + qCDebug(LOG_CosinusProvider()) << "CosinusProvider::requestDataLoading" + << QThread::currentThread()->objectName(); // NOTE: Try to use multithread if possible for (const auto &dateTime : dateTimeList) { auto scalarSeries = this->retrieveData(DataProviderParameters{dateTime});