mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
log: Use LogError for fatal errors
This commit is contained in:
@@ -462,7 +462,7 @@ bool InitHTTPServer(const util::SignalInterrupt& interrupt)
|
||||
raii_evhttp http_ctr = obtain_evhttp(base_ctr.get());
|
||||
struct evhttp* http = http_ctr.get();
|
||||
if (!http) {
|
||||
LogPrintf("couldn't create evhttp. Exiting.\n");
|
||||
LogError("Couldn't create evhttp. Exiting.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -472,7 +472,7 @@ bool InitHTTPServer(const util::SignalInterrupt& interrupt)
|
||||
evhttp_set_gencb(http, http_request_cb, (void*)&interrupt);
|
||||
|
||||
if (!HTTPBindAddresses(http)) {
|
||||
LogPrintf("Unable to bind any endpoint for RPC server\n");
|
||||
LogError("Unable to bind any endpoint for RPC server");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user