Cleaned MD use of logs.

This commit is contained in:
Pedro Pinto committed 2017-10-09 22:24:21 +00:00
1 parent 36cee53c41
commit b9a6c078aa
5 files changed
+19 -14

No files matched your search

+3 -11
View File
@@ -96,19 +96,11 @@ std::ifstream::pos_type filesize(std::string const&filename)
}
}
boost::filesystem::path log_path ()
{
auto store_root = os::bts_data_path();
std::string base_path = store_root;
boost::filesystem::path result = utils::normalize_data_path (base_path);
result /= "logging";
result /= "log";
return result;
}
Sink file_sink() {
auto f= formatter();
auto path = log_path();
auto path = log_path();
path /= "log";
auto parent = path.parent_path();
if (!boost::filesystem::is_directory(parent))