diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-08-01 09:41:50 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2012-08-01 09:41:50 -0700 |
commit | b5029b87c8ed2e45df38464fad6e058aa1d9d546 (patch) | |
tree | 2c6f054c26f9c46b603f5577b591f06c188356db /src/init.cpp | |
parent | a823faecf1463d0ce09b1c6690d69c624cc62874 (diff) | |
parent | 7f1de3fec895bfcfcc67ce69be8dc4ad721ca6d5 (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.cpp | 3 |
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()); |