From: Matthieu Gallien Date: Fri, 9 Jun 2023 17:36:06 +0000 (+0200) Subject: downgrade some log lines to be less verbose X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=69df414d2732263a3043c227a7d1c8f337e48b4e;p=nextcloud-desktop.git downgrade some log lines to be less verbose those log lines can easily be skipped from info level as they are needed in very rare occasion Signed-off-by: Matthieu Gallien --- diff --git a/src/gui/socketapi/socketapi.cpp b/src/gui/socketapi/socketapi.cpp index b657ecaa6..4b1dab50e 100644 --- a/src/gui/socketapi/socketapi.cpp +++ b/src/gui/socketapi/socketapi.cpp @@ -316,7 +316,7 @@ void SocketApi::slotNewConnection() if (!socket) { return; } - qCInfo(lcSocketApi) << "New connection" << socket; + qCDebug(lcSocketApi) << "New connection" << socket; connect(socket, &QIODevice::readyRead, this, &SocketApi::slotReadSocket); connect(socket, SIGNAL(disconnected()), this, SLOT(onLostConnection())); connect(socket, &QObject::destroyed, this, &SocketApi::slotSocketDestroyed); @@ -327,7 +327,7 @@ void SocketApi::slotNewConnection() for (Folder *f : FolderMan::instance()->map()) { if (f->canSync()) { QString message = buildRegisterPathMessage(removeTrailingSlash(f->path())); - qCInfo(lcSocketApi) << "Trying to send SocketAPI Register Path Message -->" << message << "to" << listener->socket; + qCDebug(lcSocketApi) << "Trying to send SocketAPI Register Path Message -->" << message << "to" << listener->socket; listener->sendMessage(message); } } @@ -366,7 +366,7 @@ void SocketApi::slotReadSocket() // Make sure to normalize the input from the socket to // make sure that the path will match, especially on OS X. const QString line = QString::fromUtf8(socket->readLine().trimmed()).normalized(QString::NormalizationForm_C); - qCInfo(lcSocketApi) << "Received SocketAPI message <--" << line << "from" << socket; + qCDebug(lcSocketApi) << "Received SocketAPI message <--" << line << "from" << socket; const int argPos = line.indexOf(QLatin1Char(':')); const QByteArray command = line.midRef(0, argPos).toUtf8().toUpper(); const int indexOfMethod = [&] { diff --git a/src/libsync/bandwidthmanager.cpp b/src/libsync/bandwidthmanager.cpp index f5fc3582b..358822e6b 100644 --- a/src/libsync/bandwidthmanager.cpp +++ b/src/libsync/bandwidthmanager.cpp @@ -286,7 +286,7 @@ void BandwidthManager::relativeDownloadMeasuringTimerExpired() auto quota = relativeLimitProgressDifference * (downloadLimitPercent / 100.0); if (quota > 20 * 1024) { - qCInfo(lcBandwidthManager) << "ADJUSTING QUOTA FROM " << quota << " TO " << quota - 20 * 1024; + qCDebug(lcBandwidthManager) << "ADJUSTING QUOTA FROM " << quota << " TO " << quota - 20 * 1024; quota -= 20 * 1024; } diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index b82f80a7c..2edd3c4c5 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -306,7 +306,7 @@ void GETFileJob::slotReadyRead() if (_bandwidthLimited) { toRead = qMin(qint64(bufferSize), _bandwidthQuota); if (toRead == 0) { - qCWarning(lcGetJob) << "Out of quota"; + qCDebug(lcGetJob) << "Out of quota"; break; } _bandwidthQuota -= toRead; diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index f162b0ed5..5f955ac0d 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -624,7 +624,7 @@ void SyncEngine::startSync() _discoveryPhase->_syncOptions = _syncOptions; _discoveryPhase->_shouldDiscoverLocaly = [this](const QString &path) { const auto result = shouldDiscoverLocally(path); - qCInfo(lcEngine) << "shouldDiscoverLocaly" << path << (result ? "true" : "false"); + qCDebug(lcEngine) << "shouldDiscoverLocaly" << path << (result ? "true" : "false"); return result; }; _discoveryPhase->setSelectiveSyncBlackList(selectiveSyncBlackList);