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
+10 -6
View File
@@ -1,4 +1,5 @@
#include "controllers/filters/parser/Tokenizer.hpp"
#include "common/QLogging.hpp"
namespace filterparser {
@@ -70,21 +71,24 @@ void Tokenizer::debug()
{
if (this->i_ > 0)
{
qDebug() << "= current" << this->tokens_.at(this->i_ - 1);
qDebug() << "= current type" << this->tokenTypes_.at(this->i_ - 1);
qCDebug(chatterinoTokenizer)
<< "= current" << this->tokens_.at(this->i_ - 1);
qCDebug(chatterinoTokenizer)
<< "= current type" << this->tokenTypes_.at(this->i_ - 1);
}
else
{
qDebug() << "= no current";
qCDebug(chatterinoTokenizer) << "= no current";
}
if (this->hasNext())
{
qDebug() << "= next" << this->tokens_.at(this->i_);
qDebug() << "= next type" << this->tokenTypes_.at(this->i_);
qCDebug(chatterinoTokenizer) << "= next" << this->tokens_.at(this->i_);
qCDebug(chatterinoTokenizer)
<< "= next type" << this->tokenTypes_.at(this->i_);
}
else
{
qDebug() << "= no next";
qCDebug(chatterinoTokenizer) << "= no next";
}
}
@@ -3,6 +3,7 @@
#include "Application.hpp"
#include "common/NetworkRequest.hpp"
#include "common/Outcome.hpp"
#include "common/QLogging.hpp"
#include "controllers/notifications/NotificationModel.hpp"
#include "providers/twitch/TwitchIrcServer.hpp"
#include "providers/twitch/api/Helix.hpp"
@@ -146,8 +147,8 @@ void NotificationController::getFakeTwitchChannelLiveStatus(
getHelix()->getStreamByName(
channelName,
[channelName, this](bool live, const auto &stream) {
qDebug() << "[TwitchChannel" << channelName
<< "] Refreshing live status";
qCDebug(chatterinoNotification) << "[TwitchChannel" << channelName
<< "] Refreshing live status";
if (!live)
{
@@ -185,8 +186,9 @@ void NotificationController::getFakeTwitchChannelLiveStatus(
fakeTwitchChannels.push_back(channelName);
},
[channelName, this] {
qDebug() << "[TwitchChannel" << channelName
<< "] Refreshing live status (Missing ID)";
qCDebug(chatterinoNotification)
<< "[TwitchChannel" << channelName
<< "] Refreshing live status (Missing ID)";
this->removeFakeChannel(channelName);
});
}