Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "common/NetworkRequest.hpp"
|
||||
#include "common/Outcome.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
#include "messages/Emote.hpp"
|
||||
#include "messages/Image.hpp"
|
||||
#include "messages/MessageBuilder.hpp"
|
||||
@@ -195,8 +196,8 @@ void FfzEmotes::loadChannel(
|
||||
std::function<void(boost::optional<EmotePtr>)> modBadgeCallback,
|
||||
bool manualRefresh)
|
||||
{
|
||||
qDebug() << "[FFZEmotes] Reload FFZ Channel Emotes for channel"
|
||||
<< channelId;
|
||||
qCDebug(chatterinoFfzemotes)
|
||||
<< "[FFZEmotes] Reload FFZ Channel Emotes for channel" << channelId;
|
||||
|
||||
NetworkRequest("https://api.frankerfacez.com/v1/room/id/" + channelId)
|
||||
|
||||
@@ -230,16 +231,18 @@ void FfzEmotes::loadChannel(
|
||||
else if (result.status() == NetworkResult::timedoutStatus)
|
||||
{
|
||||
// TODO: Auto retry in case of a timeout, with a delay
|
||||
qDebug() << "Fetching FFZ emotes for channel" << channelId
|
||||
<< "failed due to timeout";
|
||||
qCWarning(chatterinoFfzemotes)
|
||||
<< "Fetching FFZ emotes for channel" << channelId
|
||||
<< "failed due to timeout";
|
||||
shared->addMessage(
|
||||
makeSystemMessage("Failed to fetch FrankerFaceZ channel "
|
||||
"emotes. (timed out)"));
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "Error fetching FFZ emotes for channel" << channelId
|
||||
<< ", error" << result.status();
|
||||
qCWarning(chatterinoFfzemotes)
|
||||
<< "Error fetching FFZ emotes for channel" << channelId
|
||||
<< ", error" << result.status();
|
||||
shared->addMessage(
|
||||
makeSystemMessage("Failed to fetch FrankerFaceZ channel "
|
||||
"emotes. (unknown error)"));
|
||||
|
||||
Reference in New Issue
Block a user