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";
}
}