Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user