test: Remove spam from debug log - #26408
Conversation
Currently, debug.log is spammed with messages from random.cpp when functional tests are run. These logs are not useful for debugging, and decrease the signal to noise ratio of the logs.
|
ACK ef97b89 |
|
ACK ef97b89, confirmed that this log level is only used in |
|
ACK ef97b89 Confirmed what kouloumos said about this log level only appearing in Applied the code change an observed that the |
theStack
left a comment
There was a problem hiding this comment.
ACK ef97b89
Verified the effect of the PR by running ./test/functional/p2p_segwit.py --nocleanup and comparing debug.log files (on the short-running tests there was no difference). Also checked that the debug messages belonging to the excluded RAND category are indeed not needed for analyzing functional tests.
Warm welcome as a new contributor!
|
Thanks for all the quick feedback, and thanks for the warm welcome @theStack! |
| "-debug", | ||
| "-debugexclude=libevent", | ||
| "-debugexclude=leveldb", | ||
| "-debugexclude=rand", |
There was a problem hiding this comment.
Currently,
debug.logis spammed with messages like this fromrandom.cppwhen functional tests are run.These logs are not useful for debugging and decrease the signal-to-noise ratio of the logs, so they should be suppressed by excluding the
randcategory, as thelibeventandleveldbcategories currently are.
Note that the libevent and leveldb categories are external libraries, whereas src/random.{h,cpp} is logging from our own code.
Currently,
debug.logis spammed with messages like this fromrandom.cppwhen functional tests are run.These logs are not useful for debugging and decrease the signal-to-noise ratio of the logs, so they should be suppressed by excluding the
randcategory, as thelibeventandleveldbcategories currently are.