Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <QMimeDatabase>
|
||||
#include <QMutex>
|
||||
#include <QSaveFile>
|
||||
#include "common/QLogging.hpp"
|
||||
|
||||
#define UPLOAD_DELAY 2000
|
||||
// Delay between uploads in milliseconds
|
||||
@@ -160,7 +161,7 @@ void uploadImageToNuuls(RawImageData imageData, ChannelPtr channel,
|
||||
? ""
|
||||
: getLinkFromResponse(
|
||||
result, getSettings()->imageUploaderDeletionLink);
|
||||
qDebug() << link << deletionLink;
|
||||
qCDebug(chatterinoNuulsuploader) << link << deletionLink;
|
||||
textEdit.insertPlainText(link + " ");
|
||||
if (uploadQueue.empty())
|
||||
{
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <QErrorMessage>
|
||||
#include <QFileInfo>
|
||||
#include <QProcess>
|
||||
#include "common/QLogging.hpp"
|
||||
|
||||
#include <functional>
|
||||
|
||||
@@ -92,7 +93,7 @@ namespace {
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "Error occured" << err;
|
||||
qCWarning(chatterinoStreamlink) << "Error occured" << err;
|
||||
}
|
||||
|
||||
p->deleteLater();
|
||||
@@ -119,7 +120,7 @@ void getStreamQualities(const QString &channelURL,
|
||||
[=](int res) {
|
||||
if (res != 0)
|
||||
{
|
||||
qDebug() << "Got error code" << res;
|
||||
qCWarning(chatterinoStreamlink) << "Got error code" << res;
|
||||
// return;
|
||||
}
|
||||
QString lastLine = QString(p->readAllStandardOutput());
|
||||
|
||||
Reference in New Issue
Block a user