mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 23:58:18 +00:00
logging: Fix off-by-one for shrinkdebugfile
This commit is contained in:
parent
080d7c700f
commit
faab6241d0
@ -1185,7 +1185,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
CreatePidFile(GetPidFile(), getpid());
|
CreatePidFile(GetPidFile(), getpid());
|
||||||
#endif
|
#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,
|
// 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
|
// and because this needs to happen before any other debug.log printing
|
||||||
ShrinkDebugFile();
|
ShrinkDebugFile();
|
||||||
|
Loading…
Reference in New Issue
Block a user