Skip to content

Commit

Permalink
expose fPrintToDebugLog to cmd-line as -printtodebuglog option
Browse files Browse the repository at this point in the history
Closes #679
  • Loading branch information
UdjinM6 authored and schinzelh committed Jan 31, 2016
1 parent 3f4d5c4 commit 93279e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ std::string HelpMessage(HelpMessageMode mode)
strUsage += " -maxsigcachesize=<n> " + strprintf(_("Limit size of signature cache to <n> entries (default: %u)"), 50000) + "\n";
}
strUsage += " -minrelaytxfee=<amt> " + strprintf(_("Fees (in DASH/Kb) smaller than this are considered zero fee for relaying (default: %s)"), FormatMoney(::minRelayTxFee.GetFeePerK())) + "\n";
strUsage += " -printtodebuglog " + strprintf(_("Send trace/debug info to debug.log file (default: %u)"), 1) + "\n";
strUsage += " -printtoconsole " + strprintf(_("Send trace/debug info to console instead of debug.log file (default: %u)"), 0) + "\n";
if (GetBoolArg("-help-debug", false))
{
Expand Down Expand Up @@ -642,6 +643,7 @@ bool AppInit2(boost::thread_group& threadGroup)
// ********************************************************* Step 2: parameter interactions
// Set this early so that parameter interactions go to console
fPrintToConsole = GetBoolArg("-printtoconsole", false);
fPrintToDebugLog = GetBoolArg("-printtodebuglog", true) && !fPrintToConsole;
fLogTimestamps = GetBoolArg("-logtimestamps", true);
fLogIPs = GetBoolArg("-logips", false);

Expand Down

0 comments on commit 93279e7

Please sign in to comment.