Skip to content

Commit

Permalink
[GUI] Don't log to console by default.
Browse files Browse the repository at this point in the history
Default `-printtoconsole` to false for the GUI. GUI programs should not
print to the console unnecessarily. For example, when launched by the
window manager, the output might end up in the X session log file,
resulting in duplicate logging. On Windows, it is pointless as well
because bitcoin-qt isn't a console application.
  • Loading branch information
furszy committed Apr 14, 2020
1 parent ab353d9 commit 9f969e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/pivx.cpp
Expand Up @@ -420,6 +420,10 @@ void BitcoinApplication::startThread()

void BitcoinApplication::parameterSetup()
{
// Default printtoconsole to false for the GUI. GUI programs should not
// print to the console unnecessarily.
SoftSetBoolArg("-printtoconsole", false);

InitLogging();
InitParameterInteraction();
}
Expand Down

0 comments on commit 9f969e9

Please sign in to comment.