diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-04-05 00:42:52 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-04-05 00:42:48 +0200 |
commit | faab6241d0e83060afa6eabf1ef897ae33e44205 (patch) | |
tree | caac6b85bb0805f541a4bcf47c396791ba70024c /src/init.cpp | |
parent | 080d7c700fc3291560d79fc590e05b8e2bad984f (diff) |
logging: Fix off-by-one for shrinkdebugfile
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 59e5a4a207..5fee8de752 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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(); |