aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2017-01-24 12:46:01 -0500
committerAlex Morcos <morcos@chaincode.com>2017-01-24 20:28:00 -0500
commit29fb311858f098e79ed5334a128f2b0c8c88b235 (patch)
tree36c7743b6c30b57f74fcf39b5ad08ab1c6d39327 /src/init.cpp
parent1ac878ace623d43993894b6de02fc83ef1df7093 (diff)
Increase minimum debug.log size to 10MB after shrink.
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 5be011f944..c3ceb22953 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1149,8 +1149,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();