This commit is contained in:
Martin Rotter 2024-08-01 13:57:44 +02:00
parent 9af6d892bf
commit 9c6fab653b
1 changed files with 6 additions and 0 deletions

View File

@ -323,6 +323,9 @@ QList<Message> StandardServiceRoot::obtainNewMessages(Feed* feed,
// Parse data and obtain messages. // Parse data and obtain messages.
QList<Message> messages; QList<Message> messages;
FeedParser* parser; FeedParser* parser;
QElapsedTimer tmr;
tmr.start();
switch (f->type()) { switch (f->type()) {
case StandardFeed::Type::Rss0X: case StandardFeed::Type::Rss0X:
@ -361,6 +364,9 @@ QList<Message> StandardServiceRoot::obtainNewMessages(Feed* feed,
parser->setDontUseRawXmlSaving(f->dontUseRawXmlSaving()); parser->setDontUseRawXmlSaving(f->dontUseRawXmlSaving());
messages = parser->messages(); messages = parser->messages();
qDebugNN << LOGSEC_CORE << "XML parsing for feed" << QUOTE_W_SPACE(f->title()) << "took"
<< NONQUOTE_W_SPACE(tmr.elapsed()) << "ms.";
if (!parser->dateTimeFormat().isEmpty()) { if (!parser->dateTimeFormat().isEmpty()) {
f->setDateTimeFormat(parser->dateTimeFormat()); f->setDateTimeFormat(parser->dateTimeFormat());
} }