Increase minimum debug.log size to 10MB after shrink.

This commit is contained in:
Alex Morcos
2017-01-24 12:46:01 -05:00
parent 1ac878ace6
commit 29fb311858
2 changed files with 10 additions and 3 deletions

View File

@@ -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();