Skip to content

Commit 2ded588

Browse files
author
Chris
committed
Requid Patch for killdebug
1 parent f1c1d98 commit 2ded588

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,12 @@ std::string HelpMessage(HelpMessageMode mode)
432432
}
433433
strUsage += HelpMessageOpt("-minrelaytxfee=<amt>", strprintf(_("Fees (in BTDX/Kb) smaller than this are considered zero fee for relaying (default: %s)"), FormatMoney(::minRelayTxFee.GetFeePerK())));
434434
strUsage += HelpMessageOpt("-printtoconsole", strprintf(_("Send trace/debug info to console instead of debug.log file (default: %u)"), 0));
435-
strUsage += HelpMessageOpt("-killdebug", strprintf(_("Stop any writing in debug.log (default: %u)"), 0));
435+
strUsage += HelpMessageOpt("-killdebug", strprintf(_("Stop any writing in the file debug.log (default: %u)"), 0));
436436
if (GetBoolArg("-help-debug", false)) {
437437
strUsage += HelpMessageOpt("-printpriority", strprintf(_("Log transaction priority and fee per kB when mining blocks (default: %u)"), 0));
438438
strUsage += HelpMessageOpt("-privdb", strprintf(_("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)"), 1));
439439
strUsage += HelpMessageOpt("-regtest", _("Enter regression test mode, which uses a special chain in which blocks can be solved instantly.") + " " +
440-
_("This is intended for regression testing tools and app developmenFprintt.") + " " +
440+
_("This is intended for regression testing tools and app development.") + " " +
441441
_("In this mode -genproclimit controls how many blocks are generated immediately."));
442442
}
443443
strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)"));

src/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ int LogPrintStr(const std::string& str)
259259
// print to console
260260
ret = fwrite(str.data(), 1, str.size(), stdout);
261261
fflush(stdout);
262-
} else if (fPrintToDebugLog && AreBaseParamsConfigured()) {
262+
} else if (fPrintToDebugLog && AreBaseParamsConfigured() && fkilldebug ) {
263263
static bool fStartedNewLine = true;
264264
boost::call_once(&DebugPrintInit, debugPrintInitFlag);
265265

0 commit comments

Comments
 (0)