From 85f2b618c76076113467a0cd7e23fd6925be2084 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Thu, 25 Apr 2019 14:31:06 -0400
Subject: [PATCH] logs: use ofstream for file logging

---
 src/log.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/log.cpp b/src/log.cpp
index 6d1c9fee..93a36788 100644
--- a/src/log.cpp
+++ b/src/log.cpp
@@ -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(
-- 
GitLab