Skip to content

Commit faab624

Browse files
author
MarcoFalke
committed
logging: Fix off-by-one for shrinkdebugfile
1 parent 080d7c7 commit faab624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
11851185
#ifndef WIN32
11861186
CreatePidFile(GetPidFile(), getpid());
11871187
#endif
1188-
if (GetBoolArg("-shrinkdebugfile", logCategories != BCLog::NONE)) {
1188+
if (GetBoolArg("-shrinkdebugfile", logCategories == BCLog::NONE)) {
11891189
// Do this first since it both loads a bunch of debug.log into memory,
11901190
// and because this needs to happen before any other debug.log printing
11911191
ShrinkDebugFile();

0 commit comments

Comments
 (0)