From 29fb311858f098e79ed5334a128f2b0c8c88b235 Mon Sep 17 00:00:00 2001 From: Alex Morcos Date: Tue, 24 Jan 2017 12:46:01 -0500 Subject: Increase minimum debug.log size to 10MB after shrink. --- src/init.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 5be011f944..c3ceb22953 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1149,8 +1149,11 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) #ifndef WIN32 CreatePidFile(GetPidFile(), getpid()); #endif - if (GetBoolArg("-shrinkdebugfile", !fDebug)) + if (GetBoolArg("-shrinkdebugfile", !fDebug)) { + // Do this first since it both loads a bunch of debug.log into memory, + // and because this needs to happen before any other debug.log printing ShrinkDebugFile(); + } if (fPrintToDebugLog) OpenDebugLog(); -- cgit v1.2.3