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
+11 -5
View File
@@ -25,6 +25,7 @@
#include <QMediaPlayer>
#include <QStringRef>
#include <boost/variant.hpp>
#include "common/QLogging.hpp"
namespace {
@@ -712,7 +713,8 @@ void TwitchMessageBuilder::runIgnoreReplaces(
{
if ((*copy).ptr == nullptr)
{
qDebug() << "remem nullptr" << (*copy).name.string;
qCDebug(chatterinoTwitch)
<< "remem nullptr" << (*copy).name.string;
}
}
std::vector<TwitchEmoteOccurence> v(it, twitchEmotes.end());
@@ -749,7 +751,8 @@ void TwitchMessageBuilder::runIgnoreReplaces(
{
if (emote.second == nullptr)
{
qDebug() << "emote null" << emote.first.string;
qCDebug(chatterinoTwitch)
<< "emote null" << emote.first.string;
}
twitchEmotes.push_back(TwitchEmoteOccurence{
startIndex + pos,
@@ -821,7 +824,8 @@ void TwitchMessageBuilder::runIgnoreReplaces(
{
if (tup.ptr == nullptr)
{
qDebug() << "v nullptr" << tup.name.string;
qCDebug(chatterinoTwitch)
<< "v nullptr" << tup.name.string;
continue;
}
QRegularExpression emoteregex(
@@ -885,7 +889,8 @@ void TwitchMessageBuilder::runIgnoreReplaces(
{
if (tup.ptr == nullptr)
{
qDebug() << "v nullptr" << tup.name.string;
qCDebug(chatterinoTwitch)
<< "v nullptr" << tup.name.string;
continue;
}
QRegularExpression emoteregex(
@@ -955,7 +960,8 @@ void TwitchMessageBuilder::appendTwitchEmote(
start, end, app->emotes->twitch.getOrCreateEmote(id, name), name};
if (emoteOccurence.ptr == nullptr)
{
qDebug() << "nullptr" << emoteOccurence.name.string;
qCDebug(chatterinoTwitch)
<< "nullptr" << emoteOccurence.name.string;
}
vec.push_back(std::move(emoteOccurence));
}