refactor: account for requiring libevent 2.1.8+

This commit is contained in:
fanquake
2022-03-30 10:56:48 +01:00
committed by Hennadii Stepanov
parent aaf72d62c1
commit 0598f36852
3 changed files with 3 additions and 27 deletions

View File

@@ -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;