diff --git a/src/util.cpp b/src/util.cpp index e75ed4ca8..abffa7a0e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -892,7 +892,8 @@ void ShrinkDebugFile() // Scroll debug.log if it's getting too big boost::filesystem::path pathLog = GetDataDir() / "debug.log"; FILE* file = fopen(pathLog.string().c_str(), "r"); - if (file && boost::filesystem::file_size(pathLog) > 10 * 1000000) + unsigned int MAX_DEBUG_LOG_SIZE = 100*(1024*1024); // 100MB + if (file && boost::filesystem::file_size(pathLog) > MAX_DEBUG_LOG_SIZE ) { // Restart the file with some of the end std::vector vch(200000,0);