aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-03-30 10:56:48 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-03-30 14:00:12 +0200
commit0598f36852199d0cee8fe9e676a2e0bec3ebf624 (patch)
tree7e0c22f91f039e49c632bcee8bec63504ce8f818 /src/httpserver.cpp
parentaaf72d62c18f9cb325c150cf0cc21abb201607c8 (diff)
refactor: account for requiring libevent 2.1.8+
Diffstat (limited to 'src/httpserver.cpp')
-rw-r--r--src/httpserver.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index e00c68585e..f1116e35be 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -403,17 +403,12 @@ bool InitHTTPServer()
}
bool UpdateHTTPServerLogging(bool enable) {
-#if LIBEVENT_VERSION_NUMBER >= 0x02010100
if (enable) {
event_enable_debug_logging(EVENT_DBG_ALL);
} else {
event_enable_debug_logging(EVENT_DBG_NONE);
}
return true;
-#else
- // Can't update libevent logging if version < 02010100
- return false;
-#endif
}
static std::thread g_thread_http;