maflcko
commented at 8:21 pm on March 12, 2024:
member
LogPrintf/LogPrint are problematic, because:
Their name is non-descriptive of what the function does (info logging or debug logging).
They are deprecated aliases, where code is using either the deprecated or non-deprecated alias, which is inconsistent and confusing.
Fix all issues by replacing the usage.
While the diff is large and may cause merge conflicts or backport conflicts, I don’t see the deprecated aliases being kept forever, so this will have to be done at some point. All conflicts should be trivial to solve, in any case.
DrahtBot
commented at 8:21 pm on March 12, 2024:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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.
DrahtBot added the label
Refactoring
on Mar 12, 2024
maflcko force-pushed
on Mar 12, 2024
DrahtBot added the label
CI failed
on Mar 12, 2024
kevkevinpal
commented at 1:55 am on March 13, 2024:
contributor
kevkevinpal
commented at 2:19 am on March 13, 2024:
contributor
I noticed that there are helper functions such as the following using the LogPrintf naming scheme
WalletLogPrintf in src/wallet/wallet.h
LogPrintfCategoryWithThreadNames, LogPrintfCategory, LogPrintfCategoryWithoutThreadNames, LogPrintfWithoutThreadNames, LogPrintfWithThreadNames in ./src/bench/logging.cpp
Using this grep grep -nri "\<LogPrintLevel\>" ./src --binary-files=without-match
I also noticed that we are using LogPrintLevel when we could be using LogInfo, LogWarning, LogError, LogDebug and LogTrace
these might want to be addressed in a separate PR though
DrahtBot removed the label
CI failed
on Mar 13, 2024
DrahtBot added the label
Needs rebase
on Mar 13, 2024
maflcko force-pushed
on Mar 13, 2024
DrahtBot removed the label
Needs rebase
on Mar 13, 2024
ryanofsky
commented at 2:14 pm on March 13, 2024:
contributor
Concept -0. Not a strong opinion, but I think just mechanically replacing s/LogPrint/LogDebug/ and s/LogPrintf/LogInfo/ everywhere would not provide a major benefit, and while it may be true that “this will have to be done at some point” I think the point where it’d be nicest to do this would be after #29256 when we are able to define log sources to make LogDebug calls less verbose, and add missing category information to LogInfo calls.
I wouldn’t object to this PR if other reviewers think it’s a worthwhile improvement and are ok with the long list of conflicts. I just think there are other improvements we should make to log prints besides this one, and it would be better to change each individual log print once instead of changing it multiple times.
maflcko
commented at 2:17 pm on March 13, 2024:
member
Ok, makes sense. I’ll put it in draft for now, to allow for more time, if people want to change log messages further.
maflcko marked this as a draft
on Mar 13, 2024
DrahtBot added the label
Needs rebase
on Mar 14, 2024
maflcko force-pushed
on Mar 14, 2024
DrahtBot removed the label
Needs rebase
on Mar 14, 2024
hebasto
commented at 4:42 pm on March 18, 2024:
member
LogPrintf/LogPrint are problematic…
Some of them are just broken. For example, #29480.
DrahtBot added the label
Needs rebase
on Mar 20, 2024
maflcko force-pushed
on Mar 21, 2024
DrahtBot removed the label
Needs rebase
on Mar 21, 2024
DrahtBot added the label
Needs rebase
on Mar 22, 2024
maflcko force-pushed
on Mar 24, 2024
DrahtBot removed the label
Needs rebase
on Mar 24, 2024
DrahtBot added the label
Needs rebase
on Mar 25, 2024
maflcko force-pushed
on Mar 25, 2024
DrahtBot removed the label
Needs rebase
on Mar 25, 2024
DrahtBot added the label
Needs rebase
on Mar 28, 2024
maflcko force-pushed
on Mar 28, 2024
DrahtBot removed the label
Needs rebase
on Mar 28, 2024
DrahtBot added the label
Needs rebase
on Apr 24, 2024
maflcko force-pushed
on Apr 26, 2024
DrahtBot removed the label
Needs rebase
on Apr 26, 2024
DrahtBot added the label
Needs rebase
on Apr 30, 2024
maflcko force-pushed
on May 1, 2024
DrahtBot removed the label
Needs rebase
on May 1, 2024
DrahtBot added the label
Needs rebase
on May 3, 2024
maflcko force-pushed
on May 3, 2024
DrahtBot removed the label
Needs rebase
on May 3, 2024
DrahtBot added the label
Needs rebase
on May 13, 2024
maflcko force-pushed
on May 20, 2024
DrahtBot removed the label
Needs rebase
on May 20, 2024
DrahtBot added the label
CI failed
on May 22, 2024
DrahtBot
commented at 6:50 am on May 22, 2024:
contributor
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the
documentation.
Possibly this is due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
Leave a comment here, if you need help tracking down a confusing failure.
It may also make sense to finish consensus and work on the simplest possible consistent user-facing API and developer API before doing a mass migration.
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: 2024-06-29 07:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me