Log path of watchwords.json after reading.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2a0fd3d6e4
commit
fafe586cc4
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user