aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Atack <[email protected]>2020-06-07 16:57:18 +0200
committerJon Atack <[email protected]>2020-06-07 17:03:49 +0200
commit4c0c89307dabbf51a32551471c54966ddf7c5bc3 (patch)
tree8aa51f92a7400a949e201440a992914352c05d1a /src
parentMerge #19005: doc: Add documentation for 'checklevel' argument in 'verifychai... (diff)
downloaddiscoin-4c0c89307dabbf51a32551471c54966ddf7c5bc3.tar.xz
discoin-4c0c89307dabbf51a32551471c54966ddf7c5bc3.zip
log: remove deprecated `db` log category
Diffstat (limited to 'src')
-rw-r--r--src/logging.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index fe58ae9e7..35e0754f2 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -95,15 +95,7 @@ void BCLog::Logger::EnableCategory(BCLog::LogFlags flag)
bool BCLog::Logger::EnableCategory(const std::string& str)
{
BCLog::LogFlags flag;
- if (!GetLogCategory(flag, str)) {
- if (str == "db") {
- // DEPRECATION: Added in 0.20, should start returning an error in 0.21
- LogPrintf("Warning: logging category 'db' is deprecated, use 'walletdb' instead\n");
- EnableCategory(BCLog::WALLETDB);
- return true;
- }
- return false;
- }
+ if (!GetLogCategory(flag, str)) return false;
EnableCategory(flag);
return true;
}