I'd imagine this is trivial to implement by modifying LogInfo to take an optional category, but my recollection is that this was controversial, because it makes it less clear which logs lead to unconditional logging and which logs lead to conditional logging.
I understand that the CVE around this is of low severity and fixed by now (https://bitcoincore.org/en/2025/10/24/disclose-cve-2025-54605/). However, I still think it is ideal to avoid hitting rate-limiting in practise.
makes it easier to filter/grep all "net" messages and to know which module a message comes from.
Also, if this was the goal, then all logging should be moved there. Otherwise, it is just inconsistent and brittle.
Currently, before and after this pull request, most info logs in net do not have a category: git grep 'LogInfo(' ./src/net.cpp
I am also not sure if this is a worthwhile goal, because with logsourcelocations, the module (file) is logged and can be grepped, no?
No strong opinion, and I probably won't be working on this, but I think it should be trivial to implement. The goal of this pull request here was to merely fix all issues listed in the pull description.
Would be nice to have the ability to log info/warning/error messages with category.
No strong opinion on info, but I actually disagree about warnings and errors having a category. Those are all alerts that should go to the user, so being able to grep for all of them in a single and consistent way should be a goal (as explained in the pull description). Instead of supplying alerts with a category, the alert message should be unique and fully descriptive, so that the user can act on it, without having to know or look up which module it came from.