Rename the db log category to walletdb (in the style of, and to distinguish from coindb). Deprecate (but still accept) '-debug=db'.
Second commit is a scripted commit that changes the enum item name.
Rename the db log category to walletdb (in the style of, and to distinguish from coindb). Deprecate (but still accept) '-debug=db'.
Second commit is a scripted commit that changes the enum item name.
ACK 97330653b49c4b7d5e7646a28dc14906a574a005 -- diff looks correct and disambiguation is good
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
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.
ACK 97330653b49c4b7d5e7646a28dc14906a574a005
needs release notes
<!--cf906140f33d8803c4a75a2196329ecb-->Needs rebase
Deprecate (but still accept) '-debug=db'.
-BEGIN VERIFY SCRIPT-
git grep -l "BCLog::DB" src | xargs sed -i "s/BCLog::DB/BCLog::WALLETDB/g"
sed -i "s/DB =/WALLETDB =/g" src/logging.h
-END VERIFY SCRIPT-
Rebased and added release note.
0 | @@ -0,0 +1,4 @@ 1 | +Command-line options 2 | +-------------------- 3 | + 4 | +- The `-debug=db` logging category has been renamed to `-debug=walletdb`, to distinguish it from `coindb`.
- The `-debug=db` logging category has been renamed to `-debug=walletdb`, to distinguish it from `coindb`.
`-debug=db` has been deprecated and will be removed in the next major release.
Thanks, will add that. Was trying to keep it succinct, this is not worth making the release notes much longer over. But that's good to mention.
utACK 1a0007218f15f85e2c7952bbdb4a84ec2351bfe2
ACK e2c03c1156a1a8cb2c04c180f2ddbd3535126a46, tested on Linux Mint 19.2:
$ ./src/bitcoind -debug=db
...
2019-11-09T12:21:25Z [init] Warning: logging category 'db' is deprecated, use 'walletdb' instead
...
$ ./src/bitcoin-cli logging | grep true
"walletdb": true,