Skip to content
Snippets Groups Projects
Commit 85f2b618 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

logs: use ofstream for file logging

parent bcf18fda
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ enableLogging(dht::DhtRunner &dht) {
void
enableFileLogging(dht::DhtRunner &dht, const std::string &path) {
auto logfile = std::make_shared<std::fstream>();
auto logfile = std::make_shared<std::ofstream>();
logfile->open(path, std::ios::out);
dht.setLoggers(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment