-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[tests] log thread names by default in functional tests #15927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Should add a comment to |
|
@MarcoFalke - is there a good reason? Is it just so these options get picked up before the conf file is read? |
|
I think it was something like "I don't want logging to be verbose and spam the debug.log when I start a regtest node in the temp dir for debugging after a test failure" |
|
Concept ACK |
Would definitely make sense to add a comment then. This is far from obvious, especially for new contributors. Concept ACK ofc. |
Added comment as requested. |
|
utACK 7b29ec2 |
|
Hi John, I tried to test this (recompiled, ran various functional tests, added changes to make them fail), and was unable to find a change in logging. Could you give an example I can run of where this makes a difference? |
|
@jonatack Good catch. I suggest to extend some |
|
Note that I've verified that this works for me. Before: After: (note the [init] prefix on the log lines).
This would break the functional tests on platforms that don't support |
|
Oh, yeah. Would have to add to Not asking you to do it here, though. |
7b29ec2 [tests] Comment for why logging config is set as command-line args. (John Newbery) ba534cc [tests] log thread names by default in functional tests (John Newbery) Pull request description: More detailed logs are better ACKs for commit 7b29ec: jamesob: utACK 7b29ec2 Tree-SHA512: 327cfedb7b7bf32f7ce1e2de5f70c7092041a8e868e14285a79176277c6cf47ebea27027f68787332f8ad21c7f64d2640dd21813eda5b2bd0e5208a65364a879
…l tests 7b29ec2 [tests] Comment for why logging config is set as command-line args. (John Newbery) ba534cc [tests] log thread names by default in functional tests (John Newbery) Pull request description: More detailed logs are better ACKs for commit 7b29ec: jamesob: utACK bitcoin@7b29ec2 Tree-SHA512: 327cfedb7b7bf32f7ce1e2de5f70c7092041a8e868e14285a79176277c6cf47ebea27027f68787332f8ad21c7f64d2640dd21813eda5b2bd0e5208a65364a879
Summary: [tests] Comment for why logging config is set as command-line args. (John Newbery) [tests] log thread names by default in functional tests (John Newbery) Pull request description: More detailed logs are better https://github.com/bitcoin/bitcoin/pull/15927/files --- Backport of Core [[bitcoin/bitcoin#15927 | PR15927]] Test Plan: ninja test_runner.py Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D7082
More detailed logs are better