aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.h
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2022-04-02 19:26:46 +0200
committerFabian Jahr <fjahr@protonmail.com>2022-04-02 19:26:46 +0200
commite40779a4fee03c6c455149bd8e9d1a7ccd991450 (patch)
treeb7c591d1e7fe1158e0a8164ad56573c4b5b80c30 /src/httpserver.h
parent0598f36852199d0cee8fe9e676a2e0bec3ebf624 (diff)
downloadbitcoin-e40779a4fee03c6c455149bd8e9d1a7ccd991450.tar.xz
refactor: Remove outdated libevent logging code
The removed code was intended to catch issues with event_enable_debug_logging which was not available prior to libevent 2.1.1. This is not necessary since the minimum libevent version was bumped to 2.1.8.
Diffstat (limited to 'src/httpserver.h')
-rw-r--r--src/httpserver.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/httpserver.h b/src/httpserver.h
index 97cd63778a..92c8cf1843 100644
--- a/src/httpserver.h
+++ b/src/httpserver.h
@@ -31,9 +31,8 @@ void InterruptHTTPServer();
/** Stop HTTP server */
void StopHTTPServer();
-/** Change logging level for libevent. Removes BCLog::LIBEVENT from log categories if
- * libevent doesn't support debug logging.*/
-bool UpdateHTTPServerLogging(bool enable);
+/** Change logging level for libevent. */
+void UpdateHTTPServerLogging(bool enable);
/** Handler for requests to a certain HTTP path */
typedef std::function<bool(HTTPRequest* req, const std::string &)> HTTPRequestHandler;