Add a bit of logging.

This commit is contained in:
tastytea 2019-12-25 02:42:47 +01:00
parent e1a973f11f
commit f6b5ccbe22
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,7 @@ void Document::parse()
if (tree.front().first == "rss")
{
BOOST_LOG_TRIVIAL(debug) << "RSS detected.";
parse_rss(tree);
}
}
@ -179,6 +180,8 @@ string Document::remove_html(string html) const
// Replace single newlines with spaces (?<= is lookbehind, ?= is lookahead).
html = regex_replace(html, regex{R"((?<=[^\n])\n(?=[^\n]))"}, " ");
BOOST_LOG_TRIVIAL(debug) << "Converted HTML to text.";
return html;
}
} // namespace mastorss