aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAlex Morcos <[email protected]>2017-01-24 12:46:01 -0500
committerAlex Morcos <[email protected]>2017-01-24 20:28:00 -0500
commit29fb311858f098e79ed5334a128f2b0c8c88b235 (patch)
tree36c7743b6c30b57f74fcf39b5ad08ab1c6d39327 /src/init.cpp
parentMerge #9617: [Trivial] Update license year range to 2017 (diff)
downloaddiscoin-29fb311858f098e79ed5334a128f2b0c8c88b235.tar.xz
discoin-29fb311858f098e79ed5334a128f2b0c8c88b235.zip
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 5be011f94..c3ceb2295 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();