Skip to content

Commit 4c0c893

Browse files
committed
log: remove deprecated db log category
1 parent 1b90a7b commit 4c0c893

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/logging.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,7 @@ void BCLog::Logger::EnableCategory(BCLog::LogFlags flag)
9595
bool BCLog::Logger::EnableCategory(const std::string& str)
9696
{
9797
BCLog::LogFlags flag;
98-
if (!GetLogCategory(flag, str)) {
99-
if (str == "db") {
100-
// DEPRECATION: Added in 0.20, should start returning an error in 0.21
101-
LogPrintf("Warning: logging category 'db' is deprecated, use 'walletdb' instead\n");
102-
EnableCategory(BCLog::WALLETDB);
103-
return true;
104-
}
105-
return false;
106-
}
98+
if (!GetLogCategory(flag, str)) return false;
10799
EnableCategory(flag);
108100
return true;
109101
}

0 commit comments

Comments
 (0)