Skip to content

Commit 9619bc4

Browse files
mxaddictalex v
authored andcommitted
Added -print flag as alias to -printtoconsole (#555)
1 parent ac5df35 commit 9619bc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/init.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ std::string HelpMessage(HelpMessageMode mode)
516516
CURRENCY_UNIT));
517517
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"),
518518
CURRENCY_UNIT));
519+
strUsage += HelpMessageOpt("-print", _("Send trace/debug info to console instead of debug.log file"));
519520
strUsage += HelpMessageOpt("-printtoconsole", _("Send trace/debug info to console instead of debug.log file"));
520521
if (showDebug)
521522
{
@@ -874,7 +875,7 @@ static std::string ResolveErrMsg(const char * const optname, const std::string&
874875

875876
void InitLogging()
876877
{
877-
fPrintToConsole = GetBoolArg("-printtoconsole", false);
878+
fPrintToConsole = GetBoolArg("-print", GetBoolArg("-printtoconsole", false));
878879
fLogTimestamps = GetBoolArg("-logtimestamps", DEFAULT_LOGTIMESTAMPS);
879880
fLogTimeMicros = GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS);
880881
fLogIPs = GetBoolArg("-logips", DEFAULT_LOGIPS);

0 commit comments

Comments
 (0)