diff --git a/src/init.cpp b/src/init.cpp index f849b868ec4..6d9cd1d8baf 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -473,6 +473,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-experimentalfeatures", _("Enable use of experimental features")); strUsage += HelpMessageOpt("-help-debug", _("Show all debugging options (usage: --help -help-debug)")); strUsage += HelpMessageOpt("-logips", strprintf(_("Include IP addresses in debug output (default: %u)"), 0)); + strUsage += HelpMessageOpt("-debuglogfile", _("Write debug output to debug.log file (default: 0, disabled for privacy)")); strUsage += HelpMessageOpt("-logtimestamps", strprintf(_("Prepend debug output with timestamp (default: %u)"), 1)); if (showDebug) { @@ -14486,6 +14487,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // Set this early so that parameter interactions go to console fPrintToConsole = GetBoolArg("-printtoconsole", false); fLogTimestamps = GetBoolArg("-logtimestamps", true); + fPrintToDebugLog = GetBoolArg("-debuglogfile", false); fLogIPs = GetBoolArg("-logips", false); LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); diff --git a/src/util.cpp b/src/util.cpp index 26486d25c92..2ea5d583cc9 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -106,7 +106,7 @@ map mapArgs; map > mapMultiArgs; bool fDebug = false; bool fPrintToConsole = false; -bool fPrintToDebugLog = true; +bool fPrintToDebugLog = false; bool fDaemon = false; bool fServer = false; string strMiscWarning;