Add a bit of logging.
This commit is contained in:
parent
e1a973f11f
commit
f6b5ccbe22
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user