Skip to content

Commit

Permalink
Requid Patch for killdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jan 12, 2019
1 parent f1c1d98 commit 2ded588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@ std::string HelpMessage(HelpMessageMode mode)
}
strUsage += HelpMessageOpt("-minrelaytxfee=<amt>", strprintf(_("Fees (in BTDX/Kb) smaller than this are considered zero fee for relaying (default: %s)"), FormatMoney(::minRelayTxFee.GetFeePerK())));
strUsage += HelpMessageOpt("-printtoconsole", strprintf(_("Send trace/debug info to console instead of debug.log file (default: %u)"), 0));
strUsage += HelpMessageOpt("-killdebug", strprintf(_("Stop any writing in debug.log (default: %u)"), 0));
strUsage += HelpMessageOpt("-killdebug", strprintf(_("Stop any writing in the file debug.log (default: %u)"), 0));
if (GetBoolArg("-help-debug", false)) {
strUsage += HelpMessageOpt("-printpriority", strprintf(_("Log transaction priority and fee per kB when mining blocks (default: %u)"), 0));
strUsage += HelpMessageOpt("-privdb", strprintf(_("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)"), 1));
strUsage += HelpMessageOpt("-regtest", _("Enter regression test mode, which uses a special chain in which blocks can be solved instantly.") + " " +
_("This is intended for regression testing tools and app developmenFprintt.") + " " +
_("This is intended for regression testing tools and app development.") + " " +
_("In this mode -genproclimit controls how many blocks are generated immediately."));
}
strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)"));
Expand Down
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ int LogPrintStr(const std::string& str)
// print to console
ret = fwrite(str.data(), 1, str.size(), stdout);
fflush(stdout);
} else if (fPrintToDebugLog && AreBaseParamsConfigured()) {
} else if (fPrintToDebugLog && AreBaseParamsConfigured() && fkilldebug ) {
static bool fStartedNewLine = true;
boost::call_once(&DebugPrintInit, debugPrintInitFlag);

Expand Down

0 comments on commit 2ded588

Please sign in to comment.