MarcoFalke
commented at 3:12 PM on September 12, 2018:
member
It is not possible to run the full test suite when configured with --enable-lcov, since logging is disabled currently so that "unnecessary branches are not analyzed". (See c8914b9dbbf6106dac3c62769f7ce3bacd8fbf9b)
Fix this instead by replacing the macros with functions.
logging: Replace LogPrint macros with regular functionsfae3fbd61a
MarcoFalke force-pushed on Sep 12, 2018
MarcoFalke added the label Tests on Sep 12, 2018
MarcoFalke added the label Refactoring on Sep 12, 2018
MarcoFalke
commented at 3:31 PM on September 12, 2018:
member
This should only affect test builds, so tagged with refactoring.
scravy approved
scravy
commented at 3:40 PM on September 12, 2018:
contributor
utACKfae3fbd61a89c7a35bc0eda91b1df61371dc0936
MarcoFalke
commented at 3:56 PM on September 12, 2018:
member
master:
this patch:
Ruteri approved
Ruteri
commented at 4:03 PM on September 12, 2018:
none
Since this works mostly with strings and builtins it could benefit from perfect forwarding. I took a look a the tinyformat and it looks doable in something like 2 hours (we would need to fork it).
Gnappuraz approved
DrahtBot
commented at 4:32 PM on September 12, 2018:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
#13200 (Process logs in a separate thread by jamesob)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
ryanofsky
commented at 7:21 PM on September 12, 2018:
contributor
utACKfae3fbd61a89c7a35bc0eda91b1df61371dc0936
practicalswift
commented at 8:52 PM on September 12, 2018:
contributor
utACKfae3fbd61a89c7a35bc0eda91b1df61371dc0936
Very nice!
laanwj
commented at 7:44 AM on September 13, 2018:
member
nice, replacing macros with functions is unambiguously good
utACKfae3fbd61a89c7a35bc0eda91b1df61371dc0936
I took a look a the tinyformat and it looks doable in something like 2 hours (we would need to fork it).
This has been tried before, I don't think it was as easy as suggested. But you're welcome to try!—please do file changes to tinyformat upstream at https://github.com/c42f/tinyformat
laanwj merged this on Sep 13, 2018
laanwj closed this on Sep 13, 2018
laanwj referenced this in commit 1bfcc0696c on Sep 13, 2018
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC