mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-18 22:20:44 +02:00
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:
parent
65d7083f15
commit
aee80b0ef9
@ -403,6 +403,10 @@ void BitcoinApplication::startThread()
|
||||
|
||||
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.initParameterInteraction();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user