mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
log: remove deprecated db
log category
This commit is contained in:
parent
1b90a7b61a
commit
4c0c89307d
1 changed files with 1 additions and 9 deletions
|
@ -95,15 +95,7 @@ void BCLog::Logger::EnableCategory(BCLog::LogFlags flag)
|
||||||
bool BCLog::Logger::EnableCategory(const std::string& str)
|
bool BCLog::Logger::EnableCategory(const std::string& str)
|
||||||
{
|
{
|
||||||
BCLog::LogFlags flag;
|
BCLog::LogFlags flag;
|
||||||
if (!GetLogCategory(flag, str)) {
|
if (!GetLogCategory(flag, str)) return false;
|
||||||
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;
|
|
||||||
}
|
|
||||||
EnableCategory(flag);
|
EnableCategory(flag);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue