summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/downloadfiletask.cpp
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2016-11-22 13:53:58 +0200
committerKatja Marttila <katja.marttila@qt.io>2020-02-13 11:44:43 +0000
commit77820bf2a318e4ac79b55f5e51361f159d561ac4 (patch)
tree2764c974cfcbe00971f92e450c4f31392dd90317 /src/libs/installer/downloadfiletask.cpp
parentd0592e4f79f74d5a0d472d50a3c54bf23e9181de (diff)
Use of QLoggingCategory
The change enables easier filtering of log messages Change-Id: I769f7c163e20f34c37fa0fe2b0729867ffca5bcb Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/downloadfiletask.cpp')
-rw-r--r--src/libs/installer/downloadfiletask.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/installer/downloadfiletask.cpp b/src/libs/installer/downloadfiletask.cpp
index a5d47ad3b..626716223 100644
--- a/src/libs/installer/downloadfiletask.cpp
+++ b/src/libs/installer/downloadfiletask.cpp
@@ -29,6 +29,7 @@
#include "downloadfiletask.h"
#include "downloadfiletask_p.h"
+#include "globals.h"
#include <QCoreApplication>
#include <QDir>
@@ -259,7 +260,7 @@ void Downloader::onError(QNetworkReply::NetworkError error)
//with RepositoryUpdate in Updates.xml later.
//: %2 is a sentence describing the error
if (data.taskItem.source().contains(QLatin1String("Updates.xml"), Qt::CaseInsensitive)) {
- qDebug() << QString::fromLatin1("Network error while downloading '%1': %2.").arg(
+ qCWarning(QInstaller::lcServer) << QString::fromLatin1("Network error while downloading '%1': %2.").arg(
data.taskItem.source(), reply->errorString());
} else {
m_futureInterface->reportException(
@@ -279,7 +280,7 @@ void Downloader::onSslErrors(const QList<QSslError> &sslErrors)
Q_UNUSED(sslErrors);
#else
foreach (const QSslError &error, sslErrors)
- qDebug() << "SSL error:" << error.errorString();
+ qCWarning(QInstaller::lcServer) << "SSL error:" << error.errorString();
#endif
}