Switch to QT Category logging (#2206)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Steve Wills
2020-11-21 10:20:10 -05:00
committed by GitHub
parent d206ed4bcc
commit df722a72c1
54 changed files with 655 additions and 239 deletions
+5 -3
View File
@@ -3,6 +3,7 @@
#include "singletons/Paths.hpp"
#include <QDesktopServices>
#include "common/QLogging.hpp"
namespace chatterino {
@@ -40,7 +41,8 @@ void DownloadManager::setFile(QString fileURL, const QString &channelName)
void DownloadManager::onDownloadProgress(qint64 bytesRead, qint64 bytesTotal)
{
qDebug() << "Download progress: " << bytesRead << "/" << bytesTotal;
qCDebug(chatterinoCommon)
<< "Download progress: " << bytesRead << "/" << bytesTotal;
}
void DownloadManager::onFinished(QNetworkReply *reply)
@@ -48,11 +50,11 @@ void DownloadManager::onFinished(QNetworkReply *reply)
switch (reply->error())
{
case QNetworkReply::NoError: {
qDebug("file is downloaded successfully.");
qCDebug(chatterinoCommon) << "file is downloaded successfully.";
}
break;
default: {
qDebug() << reply->errorString().toLatin1();
qCDebug(chatterinoCommon) << reply->errorString().toLatin1();
};
}