< bitcoin-git>
bitcoin/master fa87da2 MarcoFalke: qa: Avoid start/stop of the network thread mid-test
< bitcoin-git>
bitcoin/master a6ed99a Wladimir J. van der Laan: Merge #13517: qa: Remove need to handle the network thread in tests...
< bitcoin-git>
[bitcoin] laanwj closed pull request #13517: qa: Remove need to handle the network thread in tests (master...Mf1806-qaAsyncIo) https://github.com/bitcoin/bitcoin/pull/13517
< jonasschnelli>
A wallet with 1000keys (keypool 1000) and no transaction requires roughly 6.8MB of ram
< satwo>
Hello all. When running bitcoind with printtoconsole=1 in bitcoin.conf, I am still getting output written to debug.log (in addition to stdout, which is what I want). Am I missing something? FWIW I am using a patched version of Bitcoin Core that simply adds a couple LogPrint statements in Validation.cpp, but I doubt that would have anything to do with this behavior.
< sipa>
satwo: what changed or what do you expect to see differently? (in case i'm missing some context)
< satwo>
sipa: Well, I'm expecting the trace/debug info to stop going to debug.log altogether based on the docs ("Send trace/debug info to console instead of debug.log file"). The problem is I'm running this node on a small VM with limited storage so an ever-growing debug.log is not desired
< satwo>
BTW "Send trace/debug info to console instead of debug.log file" is from -printtoconsole under bitcoind -h
< satwo>
It seems that this is the expected behavior based on InitLogging() in init.cpp. The m_print_to_file flag does not take into consideration "-printtoconsole"
< sipa>
satwo: sounds like a bug to me
< sipa>
was this changed recently?
< satwo>
Not that I'm aware of. Only had a need for this functionality recently
< satwo>
I'd be happy to submit a fix/PR. I guess the question is, should there be two separate flags for -printtoconsole and -printtofile so that they're not mututally exclusive? The latter would just default to 1
< sipa>
satwo: that sounds ideal; but if the behaviour unintentionally changed in a recent commit, that is a bug, and should be fixed independently from improving the functionality
< satwo>
sipa: looking over the history now. there were some relatively recent changes in April which are related to this stuff
< achow101>
satwo: sipa this was changed recently for the default printtoconsole when not using -daemon change that happened a few months ago