diff options
author | James O'Beirne <james.obeirne@pm.me> | 2022-09-19 21:39:47 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2022-09-19 21:43:26 -0400 |
commit | 9d14f27bddab351fe98a2ae197bd4cf8a092c4f3 (patch) | |
tree | 4d5af28adb9dcfb3874c8c625eb1ae2ffd70c333 /src/httpserver.cpp | |
parent | 0b02ce914e8594e8938e527c91c07f57def4e943 (diff) |
log: log RPC port on startup
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, which seems like a basic
piece of information that shouldn't be buried in debug logs.
Diffstat (limited to 'src/httpserver.cpp')
-rw-r--r-- | src/httpserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp index e68436cc2c..782e05ffd7 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; |