Log path of watchwords.json after reading.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-12-28 09:58:49 +01:00
parent 2a0fd3d6e4
commit fafe586cc4
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 1 deletions

View File

@ -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
{