aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-02-01 11:33:51 +0100
committerWladimir J. van der Laan <[email protected]>2017-02-01 11:41:00 +0100
commit77bd8c4cab67b6df6a09f856534653c7e064d6ec (patch)
treed178cf918598660ff40bc061c42f00b04008d7db /src/init.cpp
parentMerge #9640: Bumpfee: bugfixes for error handling and feerate calculation (diff)
parentIncrease minimum debug.log size to 10MB after shrink. (diff)
downloaddiscoin-77bd8c4cab67b6df6a09f856534653c7e064d6ec.tar.xz
discoin-77bd8c4cab67b6df6a09f856534653c7e064d6ec.zip
Merge #9625: Increase minimum debug.log size to 10MB after shrink.
29fb311 Increase minimum debug.log size to 10MB after shrink. (Alex Morcos)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index d7d60b0fb..7c108ac4a 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1146,8 +1146,11 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
#ifndef WIN32
CreatePidFile(GetPidFile(), getpid());
#endif
- if (GetBoolArg("-shrinkdebugfile", !fDebug))
+ if (GetBoolArg("-shrinkdebugfile", !fDebug)) {
+ // 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();
+ }
if (fPrintToDebugLog)
OpenDebugLog();