File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,15 @@ void BCLog::Logger::EnableCategory(BCLog::LogFlags flag)
95
95
bool BCLog::Logger::EnableCategory (const std::string& str)
96
96
{
97
97
BCLog::LogFlags flag;
98
- if (!GetLogCategory (flag, str)) return false ;
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::DB);
103
+ return true ;
104
+ }
105
+ return false ;
106
+ }
99
107
EnableCategory (flag);
100
108
return true ;
101
109
}
@@ -139,7 +147,7 @@ const CLogCategoryDesc LogCategories[] =
139
147
{BCLog::HTTP, " http" },
140
148
{BCLog::BENCH, " bench" },
141
149
{BCLog::ZMQ, " zmq" },
142
- {BCLog::DB, " db " },
150
+ {BCLog::DB, " walletdb " },
143
151
{BCLog::RPC, " rpc" },
144
152
{BCLog::ESTIMATEFEE, " estimatefee" },
145
153
{BCLog::ADDRMAN, " addrman" },
You can’t perform that action at this time.
0 commit comments