aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-09-30 16:29:19 +0200
committerMacroFake <falke.marco@gmail.com>2022-09-30 16:29:22 +0200
commitf59e91511a3aa8b2770eeec7034ddc1a9dec918b (patch)
tree83736f10b5de6cf182a08f9a4376905b7bf096ba /src/httpserver.cpp
parent33eef562a321ce772a9a88073a78a85894cb3fe8 (diff)
parent9d14f27bddab351fe98a2ae197bd4cf8a092c4f3 (diff)
Merge bitcoin/bitcoin#26131: log: log RPC port on startup
9d14f27bddab351fe98a2ae197bd4cf8a092c4f3 log: log RPC port on startup (James O'Beirne) Pull request description: I just spent a few hours trying to figure out why "18444" wasn't getting me to regtest's RPC server. I'm not the sharpest tool in the shed, but I was maybe understandably confused because "Bound to 127.0.0.1:18445" appears in the logs, which I assumed was the P2P port. This change logs the RPC listening address by default on startup, which seems like a basic piece of information that shouldn't be buried under `-debug`. ACKs for top commit: dergoegge: ACK 9d14f27bddab351fe98a2ae197bd4cf8a092c4f3 jarolrod: ACK 9d14f27bddab351fe98a2ae197bd4cf8a092c4f3 aureleoules: ACK 9d14f27bddab351fe98a2ae197bd4cf8a092c4f3 Tree-SHA512: 5c86f018c0b8d6264abf878c921afe53033b23ab4cf289276bb1ed28fdf591c9d8871a4baa4098c363cb2aa9a637d2e4e18e56b14dfc7d767ee40757d7ff2e7c
Diffstat (limited to 'src/httpserver.cpp')
-rw-r--r--src/httpserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index 41e048a877..1a19555f76 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -320,7 +320,7 @@ static bool HTTPBindAddresses(struct evhttp* http)
// Bind addresses
for (std::vector<std::pair<std::string, uint16_t> >::iterator i = endpoints.begin(); i != endpoints.end(); ++i) {
- LogPrint(BCLog::HTTP, "Binding RPC on address %s port %i\n", i->first, i->second);
+ LogPrintf("Binding RPC on address %s port %i\n", i->first, i->second);
evhttp_bound_socket *bind_handle = evhttp_bind_socket_with_handle(http, i->first.empty() ? nullptr : i->first.c_str(), i->second);
if (bind_handle) {
CNetAddr addr;