aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-08-01 09:41:50 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-08-01 09:41:50 -0700
commitb5029b87c8ed2e45df38464fad6e058aa1d9d546 (patch)
tree2c6f054c26f9c46b603f5577b591f06c188356db /src/init.cpp
parenta823faecf1463d0ce09b1c6690d69c624cc62874 (diff)
parent7f1de3fec895bfcfcc67ce69be8dc4ad721ca6d5 (diff)
Merge pull request #1396 from rebroad/NoShrinkOption
Make truncating the debug.log file an option.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 5fbe9d5d64..ac30a1d19d 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -264,6 +264,7 @@ std::string HelpMessage()
" -debug " + _("Output extra debugging information. Implies all other -debug* options") + "\n" +
" -debugnet " + _("Output extra network debugging information") + "\n" +
" -logtimestamps " + _("Prepend debug output with timestamp") + "\n" +
+ " -shrinkdebugfile " + _("Shrink debug.log file on client startup (default: 1 when no -debug)") + "\n" +
" -printtoconsole " + _("Send trace/debug info to console instead of debug.log file") + "\n" +
#ifdef WIN32
" -printtodebugger " + _("Send trace/debug info to debugger") + "\n" +
@@ -450,7 +451,7 @@ bool AppInit2()
}
#endif
- if (!fDebug)
+ if (GetBoolArg("-shrinkdebugfile", !fDebug))
ShrinkDebugFile();
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
printf("Bitcoin version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str());