qt: Don't log to console by default

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.
This commit is contained in:
Wladimir J. van der Laan 2018-04-23 09:25:34 +02:00
parent 65d7083f15
commit aee80b0ef9

View file

@ -403,6 +403,10 @@ void BitcoinApplication::startThread()
void BitcoinApplication::parameterSetup() void BitcoinApplication::parameterSetup()
{ {
// Default printtoconsole to false for the GUI. GUI programs should not
// print to the console unnecessarily.
gArgs.SoftSetBoolArg("-printtoconsole", false);
m_node.initLogging(); m_node.initLogging();
m_node.initParameterInteraction(); m_node.initParameterInteraction();
} }