diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index 4a14c59bc..446f06069 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -63,7 +63,6 @@ namespace libtorrent m_categories["read cache"] = 0; m_categories["write cache"] = 0; - m_log.open("disk_io_thread.log", std::ios::trunc); m_disk_access_log.open("disk_access.log", std::ios::trunc); #endif #ifdef TORRENT_DEBUG @@ -284,6 +283,9 @@ namespace libtorrent , m_work(io_service::work(m_ios)) , m_disk_io_thread(boost::ref(*this)) { +#ifdef TORRENT_DISK_STATS + m_log.open("disk_io_thread.log", std::ios::trunc); +#endif } disk_io_thread::~disk_io_thread()