diff --git a/src/init.cpp b/src/init.cpp index 68a8992e8f2d..84b937d92143 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1061,7 +1061,7 @@ bool AppInit2() #ifndef WIN32 CreatePidFile(GetPidFile(), getpid()); #endif - if (GetBoolArg("-shrinkdebugfile", logCategories != BCLog::NONE)) + if (GetBoolArg("-shrinkdebugfile", logCategories == BCLog::NONE)) ShrinkDebugFile(); if (fPrintToDebugLog) OpenDebugLog();