Browse Source

logging: Fix off-by-one for shrinkdebugfile

0.15
MarcoFalke 7 years ago
parent
commit
faab6241d0
  1. 2
      src/init.cpp

2
src/init.cpp

@ -1185,7 +1185,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) @@ -1185,7 +1185,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
#ifndef WIN32
CreatePidFile(GetPidFile(), getpid());
#endif
if (GetBoolArg("-shrinkdebugfile", logCategories != BCLog::NONE)) {
if (GetBoolArg("-shrinkdebugfile", logCategories == BCLog::NONE)) {
// 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();

Loading…
Cancel
Save