Skip to content

Commit fade788

Browse files
committed
Merge bitcoin#10153: logging: Fix off-by-one for shrinkdebugfile default
faab624 logging: Fix off-by-one for shrinkdebugfile (MarcoFalke) Tree-SHA512: d6153e06067906172ff0611af9e585a3ecf0a7d56925b6ad7c12e75aa802441047059b9b6f6c78e79916c3f2abc8f1998bfd2d5b84201ec6421f727c08da3c21
2 parents f93f9b9 + faab624 commit fade788

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)