Skip to content

Commit

Permalink
Merge pull request #2201 from barton2526/db_log
Browse files Browse the repository at this point in the history
log: remove deprecated db log category
  • Loading branch information
jamescowens authored Jun 24, 2021
2 parents 434e5a6 + 928af9f commit e1479cf
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,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;
}
Expand Down

0 comments on commit e1479cf

Please sign in to comment.