mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Change LogAcceptCategory to use uint32_t rather than sets of strings.
This changes the logging categories to boolean flags instead of strings. This simplifies the acceptance testing by avoiding accessing a scoped static thread local pointer to a thread local set of strings. It eliminates the only use of boost::thread_specific_ptr outside of lockorder debugging. This change allows log entries to be directed to multiple categories and makes it easy to change the logging flags at runtime (e.g. via an RPC, though that isn't done by this commit.) It also eliminates the fDebug global. Configuration of unknown logging categories now produces a warning.
This commit is contained in:
@@ -233,7 +233,7 @@ static bool InitRPCAuthentication()
|
||||
|
||||
bool StartHTTPRPC()
|
||||
{
|
||||
LogPrint("rpc", "Starting HTTP RPC server\n");
|
||||
LogPrint(BCLog::RPC, "Starting HTTP RPC server\n");
|
||||
if (!InitRPCAuthentication())
|
||||
return false;
|
||||
|
||||
@@ -247,12 +247,12 @@ bool StartHTTPRPC()
|
||||
|
||||
void InterruptHTTPRPC()
|
||||
{
|
||||
LogPrint("rpc", "Interrupting HTTP RPC server\n");
|
||||
LogPrint(BCLog::RPC, "Interrupting HTTP RPC server\n");
|
||||
}
|
||||
|
||||
void StopHTTPRPC()
|
||||
{
|
||||
LogPrint("rpc", "Stopping HTTP RPC server\n");
|
||||
LogPrint(BCLog::RPC, "Stopping HTTP RPC server\n");
|
||||
UnregisterHTTPHandler("/", true);
|
||||
if (httpRPCTimerInterface) {
|
||||
RPCUnsetTimerInterface(httpRPCTimerInterface);
|
||||
|
||||
Reference in New Issue
Block a user