aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2023-08-22 13:40:11 +1000
committerAnthony Towns <aj@erisian.com.au>2023-12-20 15:59:48 +1000
commite60fc7d5d34f23cccbff6e4f5f3d716fa8dad50c (patch)
tree01e6f1d7cbc8f2bf644026a7c7714ab76849d6c2 /src/httpserver.cpp
parentf7ce5ac08c669ac763e275bb7c82dcfb2b1b6c33 (diff)
downloadbitcoin-e60fc7d5d34f23cccbff6e4f5f3d716fa8dad50c.tar.xz
logging: Replace uses of LogPrintfCategory
Replace LogPrintfCategory with alternative unconditional log statements.
Diffstat (limited to 'src/httpserver.cpp')
-rw-r--r--src/httpserver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index a83f4421d7..70bd01c950 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -412,7 +412,7 @@ bool InitHTTPServer()
LogPrint(BCLog::HTTP, "Initialized HTTP server\n");
int workQueueDepth = std::max((long)gArgs.GetIntArg("-rpcworkqueue", DEFAULT_HTTP_WORKQUEUE), 1L);
- LogPrintfCategory(BCLog::HTTP, "creating work queue of depth %d\n", workQueueDepth);
+ LogDebug(BCLog::HTTP, "creating work queue of depth %d\n", workQueueDepth);
g_work_queue = std::make_unique<WorkQueue<HTTPClosure>>(workQueueDepth);
// transfer ownership to eventBase/HTTP via .release()
@@ -434,9 +434,8 @@ static std::vector<std::thread> g_thread_http_workers;
void StartHTTPServer()
{
- LogPrint(BCLog::HTTP, "Starting HTTP server\n");
int rpcThreads = std::max((long)gArgs.GetIntArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L);
- LogPrintfCategory(BCLog::HTTP, "starting %d worker threads\n", rpcThreads);
+ LogInfo("Starting HTTP server with %d worker threads\n", rpcThreads);
g_thread_http = std::thread(ThreadHTTP, eventBase);
for (int i = 0; i < rpcThreads; i++) {