diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-04-23 09:25:34 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-04-23 09:25:34 +0200 |
| commit | aee80b0ef9f9e82fb696ca3a05c06f089926bf04 (patch) | |
| tree | 43596e0e25e3e297f71ed1870532b2211257bd6c /src/qt/bitcoin.cpp | |
| parent | Merge #13017: Add wallets management functions (diff) | |
| download | discoin-aee80b0ef9f9e82fb696ca3a05c06f089926bf04.tar.xz discoin-aee80b0ef9f9e82fb696ca3a05c06f089926bf04.zip | |
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.
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 599c3c098..57fe4552a 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -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(); } |