From f6b5ccbe22b3db14fa245b000bbfaa7ef0e50c50 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 25 Dec 2019 02:42:47 +0100 Subject: [PATCH] Add a bit of logging. --- src/document.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/document.cpp b/src/document.cpp index 6ddfe25..dc631a8 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -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