From 93279e79447288358881d1ce269e7631bc182330 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sun, 24 Jan 2016 21:39:44 +0300 Subject: [PATCH] expose fPrintToDebugLog to cmd-line as -printtodebuglog option Closes #679 --- src/init.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index f80bde1ef5d52..4bda251e30be6 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -396,6 +396,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += " -maxsigcachesize= " + strprintf(_("Limit size of signature cache to entries (default: %u)"), 50000) + "\n"; } strUsage += " -minrelaytxfee= " + 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)) { @@ -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);