Merge pull request #11538 from glassez/rss-logging

Log "RSS Feed successfully downloaded" event
This commit is contained in:
Vladimir Golovnev 2019-12-02 07:16:56 +03:00 committed by GitHub
commit a73dfe4a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,6 @@
#include <algorithm>
#include <vector>
#include <QDebug>
#include <QDir>
#include <QJsonArray>
#include <QJsonDocument>
@ -195,7 +194,8 @@ bool Feed::hasError() const
void Feed::handleDownloadFinished(const Net::DownloadResult &result)
{
if (result.status == Net::DownloadStatus::Success) {
qDebug() << "Successfully downloaded RSS feed at" << result.url;
LogMsg(tr("RSS feed at '%1' is successfully downloaded. Starting to parse it.")
.arg(result.url));
// Parse the download RSS
m_parser->parse(result.data);
}