Skip to content

Commit

Permalink
Added -print flag as alias to -printtoconsole (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxaddict authored and alex v committed Jul 8, 2019
1 parent ac5df35 commit 9619bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ std::string HelpMessage(HelpMessageMode mode)
CURRENCY_UNIT));
strUsage += HelpMessageOpt("-maxtxfee=<amt>", strprintf(_("Maximum total fees (in %s) to use in a single wallet transaction or raw transaction; setting this too low may abort large transactions"),
CURRENCY_UNIT));
strUsage += HelpMessageOpt("-print", _("Send trace/debug info to console instead of debug.log file"));
strUsage += HelpMessageOpt("-printtoconsole", _("Send trace/debug info to console instead of debug.log file"));
if (showDebug)
{
Expand Down Expand Up @@ -874,7 +875,7 @@ static std::string ResolveErrMsg(const char * const optname, const std::string&

void InitLogging()
{
fPrintToConsole = GetBoolArg("-printtoconsole", false);
fPrintToConsole = GetBoolArg("-print", GetBoolArg("-printtoconsole", false));
fLogTimestamps = GetBoolArg("-logtimestamps", DEFAULT_LOGTIMESTAMPS);
fLogTimeMicros = GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS);
fLogIPs = GetBoolArg("-logips", DEFAULT_LOGIPS);
Expand Down

0 comments on commit 9619bc4

Please sign in to comment.