44 | @@ -45,6 +45,7 @@ enum LogFlags : CategoryMask {
45 | TXPACKAGES = (CategoryMask{1} << 27),
46 | KERNEL = (CategoryMask{1} << 28),
47 | PRIVBROADCAST = (CategoryMask{1} << 29),
48 | + MINING = (CategoryMask{1} << 30),
Adding a whole new log category for a single debug line seems excessive, could we put this behind an existing close-enough category instead? Mempool seems like the natural home: this line is reporting what got pulled from the mempool into the template, and anyone debugging fee/tx-selection issues already runs -debug=mempool.
We can add a new category when the examples demonstrate a need.
This was discussed in the issue #36334 in comparison with other alternatives, which aren't ideal. I think using the mempool category for mining code here is incorrect.
New logs will likely be added in the future; see project #33758.