From fafe586cc4c781566f96ecd2a512e4f728920c58 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 28 Dec 2019 09:58:49 +0100 Subject: [PATCH] Log path of watchwords.json after reading. --- src/document.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 90258d1..22fb81a 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -242,12 +242,14 @@ string Document::extract_location(const RestClient::HeaderFields &headers) const string Document::add_hashtags(const string &text) { Json::Value json; - ifstream file{_cfg.get_config_dir() /= "watchwords.json"}; + const auto filepath = _cfg.get_config_dir() /= "watchwords.json"; + ifstream file{filepath}; if (file.good()) { stringstream rawjson; rawjson << file.rdbuf(); rawjson >> json; + BOOST_LOG_TRIVIAL(debug) << "Read " << filepath; } else {